Setting Up Rolling Log Files
Use this procedure to set up the log files so that new files are created based on a number of days or on the file size. This can prevent individual log files from becoming too large.
A roll to a new file is only triggered when the system writes a log message. For example, if the number of days is set to 1 and a new day has started, a new log file is not created until the system writes a new message. For a roll to a new file to occur based on file size, the file is rolled if the size is greater than or equal to the roll size before the system attempts to write the log message. That is, the system does not include the size of the current message. If the writing of a message causes the file size to equal or exceed the roll size, then a new log file is created upon the writing of the next message.
If you set both the number of days and the size parameters, then rolling occurs based on whichever event occurs first. If you set neither, then no rolling occurs (the effect is just as if you were using the standard log file publisher).
To set up rolling log files