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

c# SetCompatibleTextRenderingDefault must be called before the first -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -

c++ - Fill runtime data at compile time with templates -