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,...

Category: Data | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 454 | Hits: 7

Similar Posts

  • How to roll log files at the beginning of the day using Enterprise Library logging block more
  • How to implement Windows Forms Based Authentication in ASP.Net more
  • CS Dev Guide: Event Logs more
  • Authenticate (forms based) against an NT Domain in ASP.NET - Without using Kerberos!! more
  • Review: SmartInspect - Logging for .NET, Java and Delphi more
  • Authenticate against an NT domain in ASP.NET - Without using Kerberos more
  • Our Database/SQL version control process more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD