26 lines
1.3 KiB
Plaintext
26 lines
1.3 KiB
Plaintext
|
<?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" >
|
||
|
<extensions>
|
||
|
<add assembly="My.Awesome.LoggingExentions"/>
|
||
|
</extensions>
|
||
|
<targets>
|
||
|
<!-- production
|
||
|
<target name="file1" xsi:type="File"
|
||
|
fileName="d:/vhosts/netzero.com.tw/cid.netzero.com.tw/Browser_Local/webFilesRoot/Logs/${date:format=yyyy-MM-dd}.log"
|
||
|
layout="${longdate} ${level:uppercase=true:padding=5} ${session} ${storeid} ${msisdn} - ${logger:shortName=true} - ${message} ${exception:format=tostring}"
|
||
|
keepFileOpen="false" openFileCacheTimeout = "30" concurrentWrites = "False"
|
||
|
/>
|
||
|
-->
|
||
|
<!-- demo /test -->
|
||
|
<target name="file1" xsi:type="File"
|
||
|
fileName="C:/inetpub/cid.netzero.com.tw/Browser_Local/webFilesRoot/Logs/${date:format=yyyy-MM-dd}.log"
|
||
|
layout="${longdate} ${level:uppercase=true:padding=5} ${session} ${storeid} ${msisdn} - ${logger:shortName=true} - ${message} ${exception:format=tostring}"
|
||
|
keepFileOpen="false" openFileCacheTimeout = "30" concurrentWrites = "False"
|
||
|
/>
|
||
|
|
||
|
</targets>
|
||
|
<rules>
|
||
|
<logger name="*" minlevel="Trace" writeTo="file1" />
|
||
|
</rules>
|
||
|
</nlog>
|