<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true"> <targets > <target xsi:type="File" name="logfile" fileName="${basedir}/logs/BAP.log" layout="${longdate} ${level:uppercase=true:padding=5} (${logger}) ${message}" archiveEvery ="Hour" archiveFileName ="${basedir}/logs/BAP.${date:format=yyyy-MM-dd HH.mm}.{#}.log" archiveNumbering ="Sequence" > </target> </targets> <rules> <logger name="*" minlevel="Debug" writeTo="logfile"> </logger> </rules> </nlog>
Hi,
There are no support for zipping files in NLog at the moment. Either you have to do this manually, or create a custom target, implementing this, see http://nlog-project.org/wiki/How_to_write_a_Target