Enterprise logging hour roll interval fix

Problem:

I set Enterprise logging block roll interval to hour but I only get a single file.

Solution:

Set the time stamp pattern to “yyyy-MM-dd-hh”

rollInterval="Hour"
timeStampPattern="yyyy-MM-dd-hh"

Explanation:

The default time stamp pattern for Enterprise logging block does not include hours. Therefore, each hour the same file is created to archive the last hour’s content.  Because hours is not part of the time stamp pattern the previous file is overwritten by a new file with the same name. The result is after 24 hours instead of having 24 files you have a single file with the last hours content.

Add comment

Loading