Meaningless Drivel is fun!*
The moose likes JBoss/WildFly and the fly likes How to set up Log4J.properties in JBoss 5.1.0? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to set up Log4J.properties in JBoss 5.1.0?" Watch "How to set up Log4J.properties in JBoss 5.1.0?" New topic
Author

How to set up Log4J.properties in JBoss 5.1.0?

Dejan Mratinkovic
Ranch Hand

Joined: Nov 20, 2008
Posts: 65
I have my own Log4j.properties file, placed in the root of my ear file, set up as described here:http://www.jboss.org/feeds/post/how_do_i_use_my_own_log4j_properties_or_xml_file_in_jboss

On Jboss 4.2.3 ti all works fine. Now I want to migrate application to Jboss 5.1, but log4j.properties seem to be ignored.

Should I initialize log4j somehow, or do anything else? In 4.2.3 all worked out of the box, without me doing anything else except placing the file into the root of application. I have tried to put the same file elsewhere on classpath, but with same result.

I guess almost all enterprise applications have log4j set up somehow. Anyone got it working on 5.1? Is my problem just file placement or could it be something else, ie. initialize/configure Log4j from my code (which I could do, and I am pretty sure it will work, but would like to avoid)?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set up Log4J.properties in JBoss 5.1.0?
 
Similar Threads
log4j does not works because it says there is no appender
log4j.properties not found
moving from log4j 1.1.1 -> 1.2.8
Websphere 6.1 - Apache commons logging with log4j does not work
Need to do logging with my own log4j.properties with jboss 6.0!