2 Star 0 Fork 0

wangning08115 / healthcare_manage_pub

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nlog.config 1.45 KB
一键复制 编辑 原始数据 按行查看 历史
wangning08115 提交于 2021-02-02 21:30 . init
<?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="Off"
throwExceptions="false">
<!-- enable asp.net core layout renderers -->
<extensions>
<add assembly="NLog.Web.AspNetCore"/>
</extensions>
<!-- the targets to write to -->
<targets>
<!-- write logs to file -->
<!--<target xsi:type="File" name="all" fileName="${basedir}/logs/${shortdate}-all.log"
layout="${longdate}|${event-properties:item=EventId_Id}|${uppercase:${level}}|${logger}|${message} ${exception:format=tostring}" />-->
<!-- another file log, only own logs. Uses some ASP.NET core renderers -->
<target xsi:type="File" name="custom" fileName="${basedir}/logs/${shortdate}.log"
layout="${longdate}|${event-properties:item=EventId_Id}|${uppercase:${level}}|${logger}|${message} ${exception:format=tostring}|url: ${aspnet-request-url}|action: ${aspnet-mvc-action}" />
</targets>
<!-- rules to map from logger name to target -->
<rules>
<!--All logs, including from Microsoft-->
<!--<logger name="*" minlevel="Trace" writeTo="allfile" />-->
<!--Skip non-critical Microsoft logs and so log only own logs-->
<logger name="Microsoft.*" maxlevel="Info" final="true" />
<!-- BlackHole without writeTo -->
<logger name="*" minlevel="Trace" writeTo="custom" />
</rules>
</nlog>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangning08115/healthcare_manage_pub.git
git@gitee.com:wangning08115/healthcare_manage_pub.git
wangning08115
healthcare_manage_pub
healthcare_manage_pub
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891