NLOG Rollover Configuration

Sabarish Sathasivan picture Sabarish Sathasivan · Oct 18, 2012 · Viewed 8.1k times · Source

Is there a configuration in NLOG that accomplishes the following

1)A new log file should be created , when the current file exceeds a particular size for ex:- 5 MB

2)The old log files should be deleted after a configured amount of time period like for ex: - 1 day

Answer

Tomasz Dzięcielewski picture Tomasz Dzięcielewski · Oct 18, 2012

You can find answer for your question (and examples) on page:

Size-based file archival - log files can be automatically archived by moving them to another location after reaching certain size and

Time-based file archival - log files can calso be automatically archived based on time

Try to use the second one and change log files every days. Than you can keep maximum number of archived files.