Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss 6.1.0.Final Application Specific logging

 
M. Phaneendra Vijay
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic