-
1. Re: Why debug messages in my webapp is in boot.log
peterj Sep 17, 2008 11:53 AM (in response to michaelchan)There are two phases to logging in the application server - boot logging and server logging. For boot logging, the log4.properties file in the bin/run.jar file is used. Apparently the 'log4j.configuration' system property is being ignored for the boot log, and only used for the server log.
-
2. Re: Why debug messages in my webapp is in boot.log
michaelchan Sep 17, 2008 12:20 PM (in response to michaelchan)Hi Peter, thanks for the reply.
I understand the fact that there are two phases of logging.
However, it seems that whatever is in log4j.properties in run.jar is overriding the log4j.properties in my webapp. So what exactly happened is that even if I have set logging to INFO, console in my webapp's log4j.properties, Jboss is loggin all debug messages in boot.log. -
3. Re: Why debug messages in my webapp is in boot.log
erasmomarciano Sep 18, 2008 5:10 AM (in response to michaelchan)You check log4j.xml ,is likely that you replaced the name server.log with boot.log
you see this url http://wiki.jboss.org/wiki/JBossBootLogging -
4. Re: Why debug messages in my webapp is in boot.log
michaelchan Sep 22, 2008 7:51 AM (in response to michaelchan)I have looked at the wiki page and make sure that everything is set correctly, but still, somehow jboss is still writing debug messages of my app to boot.log.
The only way to stop it is to remove log4j.properties from run.jar, could this be a bug? -
5. Re: Why debug messages in my webapp is in boot.log
erasmomarciano Sep 23, 2008 5:17 AM (in response to michaelchan)I think it is not a bug of jboss but the problem is in 'log4j.configuration.
Can you reinstall JBoss? -
6. Re: Why debug messages in my webapp is in boot.log
michaelchan Sep 23, 2008 5:51 AM (in response to michaelchan)I started a fresh 4.2.2 server but still get the same problem, any idea, i am using it with jboss portal, could that be a problem?