logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iaragorn <iarag...@pobox.sk>
Subject Re: set up Log4j
Date Fri, 12 Feb 2010 08:38:35 GMT

One working solution is presented here:
http://www.simonsite.org.uk/

Thanks



iaragorn wrote:
> 
> 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-tp27533091p27560329.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