Use patterns in log file name
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rustam_Bunyadov
Posted On:   Friday, October 27, 2006 06:12 AM

Hi!

I want log files to be put in separate folder per day that's why I need to be able to use patterns in log file names.

This is one appender from my log4j.properties file:

			
........
#### Third appender generates CDRs
log4j.appender.CDR=org.apache.log4j.RollingFileAppender
log4j.appender.CDR.File=cdrs/%d{dd_MM_yyyy}/%d{HH}.cdr
........


Instead I get the file %d{HH}.cdr put in dir cdrs/%d{dd_MM_yyyy} as is :) . Is there any way to use patterns in file name?
About | Sitemap | Contact