Search Java Code Snippets


  Help us in improving the repository. Add new snippets through 'Submit Code Snippet ' link.





#Java - Code Snippets for '#SizeBasedTriggeringPolicy' - 1 code snippet(s) found

 Sample 1. Sample Log4j config file with RollingRandomAccessFile appender ( Rolling Logs ) and SizeBasedTriggeringPolicy

<Configuration status="INFO">
<Appenders>
<RollingRandomAccessFile name="File" fileName="logs/xyz.log" immediateFlush="true" filePattern="logs/xyz-%d{MM-dd-yyyy}.log.gz">
      <SizeBasedTriggeringPolicy size="250 MB"/>
   </RollingRandomAccessFile>
</Appenders>
<Loggers>
<Root level="INFO">
<AppenderRef ref="File" />
</Root>
</Loggers>
</Configuration>

   Like      Feedback     log4j  SizeBasedTriggeringPolicy  RollingRandomAccessFile



Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner