File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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?