Dec 31, 2012
1 min read
name - Target的名稱
header - 頭部格式
layout - 輸出格式
footer - 尾部格式
<?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”><!– See http://nlog-project.org/wiki/Configuration_file for information on customizing logging rules and outputs. –> <targets> <target xsi:type="Debugger” name="f” layout="${longdate} ${uppercase:${level}} ${message}” /> </targets> <rules> <logger name=”*” minlevel="Trace” writeTo="f” /> </rules> </nlog>
Sharing is caring!