1 Star 0 Fork 0

外星人/HyggeImaotai

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nlog.config 1.93 KB
一键复制 编辑 原始数据 按行查看 历史
Hygge 提交于 2023-07-29 18:48 . feat: 完成定时任务的安排
<?xml version="1.0" ?>
<!--<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
autoReload="true"
internalLogLevel="Trace"
internalLogFile="D:\work\log.txt">-->
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
autoReload="true">
<targets>
<!-- Log in a separate thread, possibly queueing up to
5000 messages. When the queue overflows, discard any
extra messages-->
<!-- write logs to file -->
<target name="file" xsi:type="AsyncWrapper" queueLimit="5000" overflowAction="Discard">
<target xsi:type="File" fileName="${basedir}/logs/${shortdate}.log" layout="${longdate} ${level:uppercase=true} ${event-context:item=Action} ${message} ${event-context:item=Amount} ${stacktrace}" />
</target>
<target name="colorConsole" xsi:type="ColoredConsole" useDefaultRowHightingRules="false" layout="${date:format=yyyy-MM-dd HH\:mm\:ss}|${pad:padding=5:inner=${level:uppercase=true}}|${message}" >
<highlight-row condition="level == LogLevel.Debug" foregroundColor ="Blue" />
<highlight-row condition="level == LogLevel.Info" foregroundColor ="Gray" />
<highlight-row condition="level == LogLevel.Warn" foregroundColor ="Yellow" />
<highlight-row condition="level == LogLevel.Error" foregroundColor ="Red" />
<highlight-row condition="level == LogLevel.Fatal" foregroundColor ="Red" />
</target>
<!--write log message to Visual Studio Output-->
<target name="debugger" xsi:type="Debugger" layout="NLog: ${date:format=HH\:mm\:ss} | ${level:uppercase=true:padding=-5} | ${message}" />
</targets>
<rules>
<!--TRACE,DEBUG,INFO,WARN,ERROR,FATAL-->
<logger name="*" minlevel="Trace" writeTo="colorConsole" />
<!--DEBUG,INFO,WARN,ERROR,FATAL-->
<logger name="*" minlevel="Debug" writeTo="file" />
</rules>
</nlog>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jiaguangqiang/HyggeImaotai.git
git@gitee.com:jiaguangqiang/HyggeImaotai.git
jiaguangqiang
HyggeImaotai
HyggeImaotai
main

搜索帮助