logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Park <simon_park_m...@yahoo.co.uk>
Subject Re: Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender
Date Wed, 06 Jan 2016 06:33:15 GMT
FWIW, if you're stuck on Log4J 1.2.17, you could use the TimeAndSizeRollingAppender available
from www.simonsite.org.uk to solve this use case.

Best Regards,

Simon

Sent from my iPad

> On 5 Jan 2016, at 06:14, Anshu Garg1 <anshugarg@in.ibm.com> wrote:
> 
> Hi,
> 
> We have extended patternlayout to set custom footer and header. Now when 
> we use this pattern in rolling file appender footer is only added to last 
> log file generated while header is added to all files. Our requirement is 
> to have footer also added to files created. Any suggestion? Here is the 
> snippet. 
> 
> Logger logger = Logger.getLogger("myLogger");
> CustomPattern pattern = new CustomPattern();
> pattern.setHeader("HeaderText");
> pattern.setFooter("FooterText");
> rollingFileAppender.setLayout(pattern);
> 
> -Thanks & Regards,
> Anshu Garg
> Platform Technology Center, India
> 
> Phone: 8800096760
> E-mail: anshugarg@in.ibm.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