karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: custom log file size not restricted
Date Wed, 13 Dec 2017 06:20:32 GMT
Hi,

It should work (it's what we are using without problem for "out" appender).

I guess you added this appender in the logger (rootLogger or specific logger) 
right ?

Can you try to remove extra spaces around '=' ?

Regards
JB

On 12/13/2017 07:05 AM, jyothi wrote:
> Hi,
> 
> I have configured for a custom log in pax logging in Karaf as follows and
> found the size of the custom log is not restricted to 1 MB and increasing.
> Can you please let us know what could be the issue? Thanks in advance
> 
> log4j.appender.custom = org.apache.log4j.RollingFileAppender
> log4j.appender.custom.append = true
> log4j.appender.custom.file = ${karaf.data}/log/custom.log
> log4j.appender.custom.layout = org.apache.log4j.PatternLayout
> log4j.appender.custom.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss Z} |
> %-5.5p | %t | %c{1} | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} |
> %m%n
> log4j.appender.custom.maxBackupIndex = 10
> log4j.appender.custom.maxFileSize = 1MB
> 
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message