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.