logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <ralph.go...@dslextreme.com>
Subject Re: Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender
Date Tue, 05 Jan 2016 06:33:41 GMT
Please see https://blogs.apache.org/foundation/entry/apache_logging_services_project_announces
<https://blogs.apache.org/foundation/entry/apache_logging_services_project_announces>.

Ralph

> On Jan 4, 2016, at 11:14 PM, 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 
> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message