log4j problem

Discussions

General J2EE: log4j problem

  1. log4j problem (1 messages)

    Till now i am using my log4j.properties file to take a backup of the log every night but now in addition to that i need to take backup whenever the log file reaches some amount of KB. Am i able to do that..please help me out.
  2. Maybe somehting like this: # ROLLING FILE OUTPUT DRIVER SETTINGS log4j.appender.ROL=org.apache.log4j.RollingFileAppender log4j.appender.ROL.File=/var/opt/apps/myapp/var/logs/application.log log4j.appender.ROL.MaxFileSize=4000KB log4j.appender.ROL.MaxBackupIndex=5 log4j.appender.ROL.layout=com.myapp.util.logger.LoggerLayout log4j.appender.ROL.layout.ConversionPattern=+{DATE_TIME};{EVENT_ID};{SESSION_ID};{SEVERITY};{MODULE};{THREAD_ID};{EVENT_TYPE};{ERROR_CODE};{DESCRIPTION};{DEBUG_INFO} Taken from: http://forum.java.sun.com/thread.jspa?threadID=544155&messageID=3078722