Re: DefaultRolloverStrategy.createStrategy - access the appender

2016-10-07 Thread Gary Gregory
I don't quite see how to do that without inventing some kind of build context object that gets passed around. Any one else? Gary On Fri, Oct 7, 2016 at 2:43 PM, Benjamin Jaton wrote: > Hello, > > When configuring the rollover strategy for an appender, is there a way

DefaultRolloverStrategy.createStrategy - access the appender

2016-10-07 Thread Benjamin Jaton
Hello, When configuring the rollover strategy for an appender, is there a way to access the name of the appender from this method: DefaultRolloverStrategy.createStrategy ? I'm trying to write my own and I could use that name for my implementation. Thanks, Benjamin

Re: "" cause html log file cannot be displayed correctly.

2016-10-07 Thread Gary Gregory
Emi, This is odd, in 2.7, the method org.apache.logging.log4j.core.layout.HtmlLayout.getHeader() writes more header bytes before it gets to: Looking at the code I do not see how an HTML file written by Log4j 2.7 can start with a body tag. Can you verify that only Log4j 2.7 is on the

"" cause html log file cannot be displayed correctly.

2016-10-07 Thread Emi
Hello, Tried log4j2.7, when stop/reload tomcat, html log file shows wrong format. This happens only when there are already previous records in the html log file. Debug steps: (1) run login and log one/two records in html format (2) stop webapp reinstalled webapp