C#,vb.net,MVC,Jquery,javascript,jscript,vbscript,html,vb,sharepoint,COM,WPF,WCF,Wwf,Asp,Asp.net,questions & answers,

Latest in Sports

Tuesday, May 22, 2012

DB Logging - Rollover mechanism


We are using enterprise library to log message into rolling flat using source listener of type ‘Rolling Flat File Trace Listener’. As per the configuration a new log file will be created on each day and new file will be created if the file size exceeds 10MB on a day, i.e. in a particular day if the log file size reaches 10MB then a new log file is created. By this way we maintain that only up to 10MB log file in the server.
Now as per our project requirement we are planning to log messages into a database table instead if flat file. So we use ‘Database trace listener’ in the source to log the message into table. We wish to have the similar rollover feature in DB logging also, so that we control the log size on a day. Please suggest on this.

No comments:

Post a Comment