Skip to main content

Posts

Showing posts with the label custom appender

Custom Log4J Appenders

  1.     Definitions 1.         com.habanoz.logging. CombinedDailyAndRollingFileAppender This appender combines functions of log4j DailyRollingFileAppender and RollingFileAppender. Files are rotated according to max file parameter. If rolling date reaches, all indexed files are renamed to have date pattern. Rolling Algorithm can be depicted as follows: file.log                                                                                    (name of log file.corresponds to File param.) if(maxFileSize)  { ...