1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
| <?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" xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd" autoReload="true" throwExceptions="false" internalLogLevel="OFF" internalLogFile="c:\temp\nlog-internal.log">
<variable name="app_context" value="gis"/>
<targets>
<target xsi:type="File" name="f_app" fileName="${basedir}/GISAPP/logs/applog/applog-${shortdate}.log" archiveNumbering="Sequence" archiveEvery="Day" maxArchiveDays="30" archiveAboveSize="102400000" layout="${longdate} ${message} ${exception}" /> <target xsi:type="File" name="f_net" fileName="${basedir}/GISAPP/logs/netlog/netlog-${shortdate}.log" archiveNumbering="Sequence" archiveEvery="Day" maxArchiveDays="30" archiveAboveSize="102400000" layout="${longdate} ${message} ${exception}" /> </targets> <rules>
<logger name="app_logger" minlevel="Trace" writeTo="f_app" /> <logger name="net_logger" minlevel="Trace" writeTo="f_net" /> </rules> </nlog>
|