柚子快报激活码778899分享:NLog.config 配置
NLog.confg 参考配置, NLog 热生效不需要重启服务
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd" autoReload="true" throwExceptions="false" internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log"> layout="${consoleVal}" > name="logfile" fileName="${logDirectory}/info_${shortdate}.log" keepFileOpen="false" layout="${layoutVal}" /> name="warnfile" fileName="${logDirectory}/warn_${shortdate}.log" keepFileOpen="false" layout="${layoutVal}" /> name="errfile" fileName="${logDirectory}/error_${shortdate}.log" keepFileOpen="false" layout="${layoutVal}" /> name="debugfile" fileName="${logDirectory}/debug_${shortdate}.log" keepFileOpen="false" layout="${layoutVal}" /> name="tracefile" fileName="${logDirectory}/trace_${shortdate}.log" keepFileOpen="false" layout="${traceVal}" />
柚子快报激活码778899分享:NLog.config 配置
精彩内容
发表评论