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 -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -