Subject: Log Reports management
Posted By: eelisMX Post Date: 2/21/2006 9:27:39 AM
Hi

I'm trying to figure out the best practice to manage log reports generated by my application.
The application generates a log file for each process, and those files are all saved under a specific directory. The log file name is combined of the process name and the date-time of the creation (process.20060221-1605.log).
The idea is to have a class that manage all the log files. There should be a limit for the amount of log files in the folder so that every time a new log is written, it has to check that there are not too many files and delete the oldest in case of too many.

Again, I'm looking for the best practice to implement it and I'm sure you have some samples.

Thanks in advance!

Go to topic 40287

Return to index page 363
Return to index page 362
Return to index page 361
Return to index page 360
Return to index page 359
Return to index page 358
Return to index page 357
Return to index page 356
Return to index page 355
Return to index page 354