10 Star 65 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>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/seven1986/OAuthApp.git
git@gitee.com:seven1986/OAuthApp.git
seven1986
OAuthApp
OAuthApp
master

搜索帮助