Re: How can I use log4j 2 if there are both log4j and log4j 2 jars included in classpath?

2017-05-25 Thread Sigmond Hola
Hi Matt, I think I have to replace activemq-all.jar with several nessesry jars, because there are log4j v1 implementation in it, I found out it will try to load log4j.properties(or xml) even after I add log4j2 binding for log4j v1: log4j-1.2-api-2.x.jar in the classpath. Bests. On Thu, May 25, 2

Re: RollingFileAppender not working consistently

2017-05-25 Thread Ralph Goers
Please see https://blogs.apache.org/foundation/entry/apache_logging_services_project_announces . We recommend you upgrade to Log4j 2. Log4j 1 has not been supported for years. Ralph > On May 25, 2017, at 9:55

Re: RollingFileAppender not working consistently

2017-05-25 Thread AlexD
I'm using log4j-extras log4j apache-log4j-extras ${log4j.version} and following configuration log4j.appender.file=org.apache.log4j.RollingFileAppender log4j.appender.file.File=C:/logs/app.log log4j.appender.file.Append=true log4j.appender.file.RollingPolicy=org.apache.log4j.rolling.TimeBa

Re: How can I use log4j 2 if there are both log4j and log4j 2 jars included in classpath?

2017-05-25 Thread Matt Sicker
I think that would depend on the servlet container you're using. I don't think there's a standard way to rearrange lib/ entries in a WAR file, so I'm assuming it'd be an extension. Another option might be to rename the activemq-all.jar file to something like z-activemq-all.jar so it comes last alph

Re: How can I use log4j 2 if there are both log4j and log4j 2 jars included in classpath?

2017-05-25 Thread Sigmond Hola
Hi matt & Gary, How can I do this, then? Thanks. On Mon, May 22, 2017 at 11:22 PM, Matt Sicker wrote: > The best workaround in your scenario definitely sounds like rearranging the > classpath with log4j2 first. > > On 19 May 2017 at 21:33, Sigmond Hola wrote: > > > I dont like dependency on