a guest Sep 14th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. create log file on a daily basis for my spring project using log4j.
  2. <appender name="Daily" class="org.apache.log4j.DailyRollingFileAppender">
  3.  <param name="file" value="${catalina.home}/logs/test.log" />
  4.  <param name="DatePattern" value="'.'yyyy-MM-dd" />
  5.  <param name="MaxBackupIndex" value="10" />
  6.  <layout class="org.apache.log4j.PatternLayout">
  7.   <param name="ConversionPattern" value="[%t] %d{HH:mm:ss,SSS} %-5p %l - %m%n" />
  8.  </layout>
  9. </appender>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand