The moose likes JBoss and the fly likes JBoss 6.1.0.Final Application Specific logging Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "JBoss 6.1.0.Final Application Specific logging" Watch "JBoss 6.1.0.Final Application Specific logging" New topic
Author

JBoss 6.1.0.Final Application Specific logging

M. Phaneendra Vijay
Greenhorn

Joined: Jun 10, 2009
Posts: 26
Hi,

I am using Jboss 6.1.0 for my application. I have two binary files.
Policy.jar and PolicyConverter.ear
I am using log4j 1.2.16 to print the logs to a file.
Unfortunately, all the logs are printed to server.log and not to my own log file.
But the logs generated in PolicyConverter.ear are sent to converter.log correctly,
and the logs generated in Policy.jar are NOT printed in the policy.log file, but are redirected to server.log.
I am using the same logging mechanism in both the binaries.

I have searched the internet and found one answer
to remove the 'mode="On Demand"' attribute from 'bean name="OnDemandJBossLogManagerContextSelector"' tag in JBOSS_HOME/server/<servername>/deployers/jboss-logging.deployer/META-INF/logmanager-jboss-beans.xml

I did that and the problem still persists. (policy.log file is created but logs are not printed to it, instead printed to server.log)

Thanks in advance.
 
 
subject: JBoss 6.1.0.Final Application Specific logging
 
Threads others viewed
How to filter out application specific log from server.log
logging in one file only
How to disable logging in server.log
loggin setup in Jboss
Disable struts logging
IntelliJ Java IDE