Logging Configuration

  6 posts   Feedicon  
Replies: 5 - Last Post: November 23, 2010 17:30
by: Csaba Toth
showing 1 - 6 of 6
 
Posted: November 03, 2010 11:54 by arnoldmad
Hi !

How can I set openempi and its components to debug ?

yours

Arnold
 
Posted: November 04, 2010 22:36 by Csaba Toth
I'm not sure if I interpret you question right. But if you want to debug OpenEMPI, you have to:
1. Compile it from your source
2. Deploy it into your app server (maybe your IDE dues that automatically)
3. Start the app server in a Debug mode from your IDE (Eclipse in my case)
 
Posted: November 04, 2010 23:54 by odysseas
Arnold,

If you are referring how to set the log4j facility to log at debug level, one possible approach is to add a log4j.properties file to the war file. Here are the steps.

mkdir WEB-INF/classes
mv log4.properties WEB-INF/classes
jar uvf openempi-webapp-web-2.1.0.war

When you redeploy the war file, it should load the log4j.properties file that you provided.

If that still doesn't work, set the environment variable JAVA_OPTS="-Dlog4j.debug" before you start the JBoss server. It should then display the logging configuration file that log4j is using.

Let us know if that works for you or not.

Odysseas
 
Posted: November 08, 2010 11:48 by arnoldmad
Hi odysseas !

Thanks for your reply. I will try as suggested and will post here my results.

yours

Arnold
 
Posted: November 09, 2010 08:14 by arnoldmad
I had to add an log4j.xml file as this was used in /WEB-INF/classes - is there a way to use the standard jboss-log4j.xml to have everything get written to one file (including other jboss AS output) ?
 
Posted: November 23, 2010 17:30 by Csaba Toth
Good question, I don't know.
showing 1 - 6 of 6
Replies: 5 - Last Post: November 23, 2010 17:30
by: Csaba Toth
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close