• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Externalizing log4j.properties in JBoss

 
Ranch Hand
Posts: 157
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am using slf4j for logging in my application which is deployed in JBOSS.
Now i want to externalize the log4j.properties means i want to pull it out side of myapp.war.
So i have created a jar with log4j.propeties along with my application specific properties file and placed the jar in %JBOSS_HOME%/server/default/lib.
I am able to read the remaining configuration file in my application, but the JBOSS not considering the log4j.properties in this jar.
Is there any mistake in my approach?
I want the log4j.properties should be outside of myapp.war.Thats my goal...


Thanks and Regards,
Bala.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Logging in JBoss AS is governed by the server/xxx/conf/jboss-log4j.xml file. Usually, you should add your logging settings there.

For per-app log settings, see this:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125552
 
Die Fledermaus does not fear such a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic