-
1. Re: Logging - log4j AND slf4j
jamezp Mar 22, 2013 2:35 PM (in response to johnson_shawn)One note as of 7.1.1.Final you don't need to add org.apache.log4j or org.slfj as dependencies. They are both added to each deployment by default.
The only thing I can think of is that maybe you have a slf4j implementation, like maybe an slf4j-log4j12, being bundled with your deployment.
--
James R. Perkins
-
2. Re: Logging - log4j AND slf4j
johnson_shawn Apr 18, 2013 3:42 PM (in response to jamezp)Thanks James, we did end up removing the log4j module from our dependency file. We didn't have any slf4j libs in our deployment - we were thinking the same thing.
We also ended upgrading to jboss-as-713.
We explicitly defined each package/class that we wanted to log in the standalone.xml logging subsection. Also we explicitly added stdout and stderr definitions. Lastly we defined a log4j.xml to turn off some double-logging we were getting. This seems to do the trick for us now. We also updated our code to use sfl4j, then let JBoss logging handle everything.
Hope this helps someone else.
The only thing that seemed odd is how we only get logging if we explicitly define a logger for the package/class.
-
3. Re: Logging - log4j AND slf4j
jamezp Apr 18, 2013 4:00 PM (in response to johnson_shawn)Yeah you shouldn't have to define loggers for each package/class. The root-logger should handle that.
--
James R. Perkins