Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

how to read application specific log4j.xml in jboss

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i deployed my web application in JBoss App server and i have my app specific log configurations specified in log4j.xml
which is reading that file in LoggingManager.java(my app specific file) file using DOMConfigurator but me not able to finding the log4j.xml but log4j.xml is availble in same directory.

Please help in this..

Regarrds
Srinu
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of JBossAS do you use? Post the code which tries to load this log4j.xml. And why are you trying to load this file programatically? The easiest way is to configure the log4j through the log4j.xml available in %JBOSS_HOME%/server/< serverName>/conf folder.

While posting logs or code or xml content, please wrap it in a Code block by using the Code button in the message editor window. Please use the Preview button to ensure your post is correctly formatted.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!