daily pastebin goal
82%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 54 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  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
 
Top