Welcome to Dream.In.Code
Become an Expert!

Join 150,394 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,037 people online right now. Registration is fast and FREE... Join Now!




EnterpriseLibrary 3.1.0.0 - Rolling Flat File Trace Listener to genera

 
Reply to this topicStart new topic

EnterpriseLibrary 3.1.0.0 - Rolling Flat File Trace Listener to genera, EnterpriseLibrary 3.1.0.0 - Rolling Flat File Trace Listener to genera

veeruu
6 Mar, 2008 - 08:49 PM
Post #1

New D.I.C Head
*

Joined: 29 Nov, 2007
Posts: 3


My Contributions
Hi all,

I have implemented code like following.

CODE


<add fileName="trace.log" rollSizeKB="0" timeStampPattern="yyyy-MM-dd" rollFileExistsBehavior="Overwrite" rollInterval="Day" header="----------------------------------------" footer="----------------------------------------" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" traceOutputOptions="None" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" name="Rolling Flat File Trace Listener"/>


If i changed the system date manually then its working fine, a new file is created with the current date.

But the cases like

if i starts the application on 6th March 2008 11:59:00 PM , And working till 7th March 00:05:02 AM. Its not creating any new log file with the current date.Its logging only at "trace.log".

Please help me how to resolve this..

Thanks in Advance,

PVS

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 06:06PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month