GeeCON Prague 2014*
The moose likes JBoss/WildFly and the fly likes prob in JBoss and log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "prob in JBoss and log4j" Watch "prob in JBoss and log4j" New topic
Author

prob in JBoss and log4j

Prashanth Babu
Greenhorn

Joined: Nov 08, 2004
Posts: 6
We have this specific problem related to JBoss-4.0.1 and log4j (which comes inbuilt in JBoss).
I dont want JBoss's inbuilt log4j to do logging for me.
I want to make my own properties file and JBoss on the fly should lift the properties file and log accordingly to files and console.
I tried to disable JBoss's log4j logging. But am unable to do it.

If I try to run a stand-alone java program (without JBoss Server) with a log4j properties file, it works fine and logs accordingly as given in my properties file.
But, if I try to run my application (on JBoss), it is not taking my properties file, but it is taking JBoss's log4j.xml and logs accordingly.
I tried to customize the log4j.xml, even that dint work for me.

I have deleted all the log4j.xml files, wherever I found in the %JBOSS_HOME% folder. Yet am not able to find the solution,even though, there is no xml file, even then, JBoss logs as if it is lifting the properties from an xml.

Please give me a solution to my problem.

TIA,

Regards,
Prashanth Babu.
 
GeeCON Prague 2014
 
subject: prob in JBoss and log4j