10 Star 66 Fork 10

uncle wang / OAuthApp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
nlog.config 1018 Bytes
一键复制 编辑 原始数据 按行查看 历史
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
autoReload="true"
internalLogLevel="Info"
internalLogFile="${basedir}/wwwroot/logs/app-log.txt">
<extensions>
<add assembly="NLog.Web.AspNetCore"/>
</extensions>
<targets async="true">
<target xsi:type="File"
name="ApiLogging"
fileName="${basedir}/wwwroot/logs/api/${date:format=yyyyMMdd}/${date:format=HH}.json"
layout="${message}," />
<target xsi:type="Console" name="lifetimeConsole" layout="${MicrosoftConsoleLayout}" />
</targets>
<rules>
<logger name="OAuthApp.Services.ApiRequestLoggingAttribute"
minlevel="Info" writeTo="ApiLogging" final="true" />
<logger name="Microsoft.*" maxlevel="Info" final="true" writeTo="lifetimeConsole" />
<logger name="System.Net.Http.*" maxlevel="Info" final="true" writeTo="lifetimeConsole" />
</rules>
</nlog>
C#
1
https://gitee.com/seven1986/OAuthApp.git
git@gitee.com:seven1986/OAuthApp.git
seven1986
OAuthApp
OAuthApp
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891