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 JBoss 6.1.0.Final Application Specific logging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
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.
Matt Zhang
Greenhorn

Joined: Jun 20, 2012
Posts: 1
I have same problem. I have a jar added into system class path. The logs generated by this jar can not write to the right log file. All the log messages are written to server.log.

Have you solve your problem?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JBoss 6.1.0.Final Application Specific logging