logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iaragorn <iarag...@pobox.sk>
Subject set up Log4j
Date Wed, 10 Feb 2010 15:39:01 GMT

Hello,

I am using jdk 1.6 and and log4j.jar.
I have following log4j.properties

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
log4j.logger.icz=DEBUG,iczLog

log4j.appender.iczLog=org.apache.log4j.DailyRollingFileAppender
log4j.appender.iczLog.File=d:\\Java\\LiquidOffice\\LogApp\\log.log
log4j.appender.iczLog.DatePattern='.'yyyy-MM-dd'.log'
log4j.appender.iczLog.layout=org.apache.log4j.PatternLayout
log4j.appender.iczLog.layout.ConversionPattern=%d{dd.MM.yyyy HH\:mm\:ss}
%-5p - %m%n``

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

And I would like to set to this log max file size. But it is not possible,
because it is DailyRollingFileAppender. Max file size I can set it to
RollingFileAppender. But I would like to use DailyRollingFileAppender.
Sometimes happend the file is in one day too big. Is there any possibility
how to set max file size for the log?

Thanks 
-- 
View this message in context: http://old.nabble.com/set-up-Log4j-tp27533091p27533091.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message