Hi there,
first of all: I'm quite a newbie using NLog so my question might seem
kind of silly.
Moreover my English is not so good so... please: be merciful! :-)
I have this nlog cofig section:
<nlog xmlns="
http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<targets>
<target name="FooLog" xsi:type="File"
layout="${date:format=HH\:mm\:ss\:fff} ${message}
${exception:format=Type,Message,StackTrace}"
fileName="${basedir}/Logs/${date:format=yyyy}/${date:format=MM}/${date:format=dd}/${date:format=hh}/${logger}.log"
keepFileOpen="false" encoding="iso-8859-2"/>
</targets>
<rules>
<logger name="*" minlevel="Trace" writeTo="FooLog"/>
</rules>
</nlog>
if my application session starts at 17:59 and goes on untill 18.02 I
have the log entries splitted into two different files:
.Logs//2009/Some-Month/Some-Day/17/xyz.log
.Logs//2009/Some-Month/Some-Day/18/xyz.log
Is there any way to make the logger write always on the same file but
without buffering the log entries?
Thanks in advance,
Giulio - Italy
--
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.
http://p.sf.net/sfu/bobj-july_______________________________________________
Nlog-list mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nlog-list