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

2017-05-19 Thread Sigmond Hola
We have a web project want to use log4j 2 for logging. But after I add - log4j-api-2.x.jar - log4j-core-2.x.jar to WEB-INF/lib, and add log4j2.xml to WEB-INF/classes, log4j 2 not work. I finally found out that there is a jar named activemq-all.jar under WEB-INF/lib, and it have classes of

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

2017-05-19 Thread Remko Popma
Instead of activemq-all, use only the parts from activemq that you need ( https://mvnrepository.com/artifact/org.apache.activemq). On Fri, May 19, 2017 at 6:12 PM, Sigmond Hola wrote: > We have a web project want to use log4j 2 for logging. > > But after I add > >- log4j-api-2.x.jar >- l

Re: Custom actions on rollover

2017-05-19 Thread Ralph Goers
The best advice I can give you is to look at the existing actions in Log4j-core. Ralph > On May 18, 2017, at 10:21 PM, Chandra > wrote: > > Hey Ralph, > > I want to write a custom action as I see it’s not available. I am just > looking for some place to start. > that’s why I asked some kind

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

2017-05-19 Thread Ralph Goers
To be frank, uber jars like this that include other people’s stuff are a terrible idea for exactly this reason. See http://activemq.apache.org/initial-configuration.html . It itemizes all the jars that are rolled into the uber jar. You nee

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

2017-05-19 Thread Gary Gregory
You can also put all the Log4j 2 jars FIRST on the classpath. Gary On May 19, 2017 8:42 AM, "Ralph Goers" wrote: > To be frank, uber jars like this that include other people’s stuff are a > terrible idea for exactly this reason. See http://activemq.apache.org/ > initial-configuration.html

Re: Custom actions on rollover

2017-05-19 Thread Remko Popma
On Fri, May 19, 2017 at 11:34 AM, Chandra < chandra.tungathur...@rwth-aachen.de> wrote: > PS: btw, “picocli” looks like a good candidate to be used in “jvmTop ( > https://github.com/tckb/jvmtop)” the original project used “jOpt” > > Great idea! Looks like a good fit. Let me know if you need help

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

2017-05-19 Thread Ralph Goers
Yuck. Ralph > On May 19, 2017, at 9:10 AM, Gary Gregory wrote: > > You can also put all the Log4j 2 jars FIRST on the classpath. > > Gary > > On May 19, 2017 8:42 AM, "Ralph Goers" wrote: > >> To be frank, uber jars like this that include other people’s stuff are a >> terrible idea for exac

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

2017-05-19 Thread Sigmond Hola
I dont like dependency on uber jar, also. It's a old project that dont even using any build tools like maven. I think I should refactoring it step by step, include replace the activemq uber jar with several necessary jars. Thank u all for ur response. Best regards. On Sat, May 20, 2017 at 1:54 A