How to roll log files at the beginning of the day using Enterprise Library logging block
Posted by: Code Climber,
on 14 Nov 2014 |
View original | Bookmarked: 0 time(s)
It took me a while to find out the (very simple) solution to my problem, so I thought it would have been a good idea to create a post explaining it. The problem Im logging from my application using Enterprise Library Logging component, and I wanted to have a new file every day. So I configured the logger with the RollingFlatFileTraceListener. One of the properties you can specify during the registration is the rollInterval attibute, which configures the log to roll every minute, hour, day, week,...