java - log4j RollingRandomAccessFile rollover when event received -


just quick question couldn't find concrete in log4j documentation. rollingrandomaccessfile behave in same way rollingfileappender in checks rollover when writes events, or difference in buffering affect this?

here few snippets config:

<policies>     <timebasedtriggeringpolicy interval="1" modulate="true"/     <sizebasedtriggeringpolicy size="100 mb" /> </policies> 

with file pattern of:

filepattern="${sys:logging.path}${sys:logging.file}-%d{mm-dd-yyyy}-%i.log.gz"> 

the rollover behavior of rollingrandomaccessfile same rollingfileappender.

note both appenders accept crontriggeringpolicy gives time based rollover trigger.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -