Hi, How do i log different file?
Below is my current configuration.... ====================================================================== =========================== log4j.rootCategory=debug, A1, A2 #### appender writes to a file log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender log4j.appender.A1.File=xxx.log log4j.appender.A1.DatePattern='.'yyyy-MM-dd log4j.appender.A1.layout=org.apache.log4j.PatternLayout #### Should i do it this way? log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender log4j.appender.A2.File=xxx.log log4j.appender.A2.DatePattern='.'yyyy-MM-dd log4j.appender.A2.layout=org.apache.log4j.PatternLayout # Control the maximum log file size log4j.appender.A1.MaxFileSize=10MB # Should i do it this way? log4j.appender.A2.MaxFileSize=10MB # Archive log files (one backup file here) log4j.appender.A1.MaxBackupIndex=3 # Should i do it this way? log4j.appender.A2.MaxBackupIndex=3 # Note the %x conversion specifier for NDC printing. #log4j.appender.A1.layout.ConversionPattern=%-4r %-5p [%t] (%x) - %m\n log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n # Should i do it this way? log4j.appender.A2.layout.ConversionPattern=%d [%t] %-5p %c - %m%n ====================================================================== =========================== What is the basic way to do it? Please help... Thanks, brendon --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.483 / Virus Database: 279 - Release Date: 5/19/2003 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
