G
Guest
I am using Trace in order to log information about the behavior of a web
application. In web.config I have defined my Application Listener as
following:
<trace autoflush="true" indentsize="4">
<listeners>
<add name="AppListener"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="d:\temp\activity.log" />
<remove type="System.Diagnostics.DefaultTraceListener" />
</listeners>
</trace>
As you can see all activity is logged in "d:\temp\activity.log". Is there a
way to make this variable, that is changing by date automatically, such as:
activity20041201.log,
activity20041202.log,
activity20041203.log etc.
Thank you for your time
application. In web.config I have defined my Application Listener as
following:
<trace autoflush="true" indentsize="4">
<listeners>
<add name="AppListener"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="d:\temp\activity.log" />
<remove type="System.Diagnostics.DefaultTraceListener" />
</listeners>
</trace>
As you can see all activity is logged in "d:\temp\activity.log". Is there a
way to make this variable, that is changing by date automatically, such as:
activity20041201.log,
activity20041202.log,
activity20041203.log etc.
Thank you for your time