• 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

prob in JBoss and log4j

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have this specific problem related to JBoss-4.0.1 and log4j (which comes inbuilt in JBoss).
I dont want JBoss's inbuilt log4j to do logging for me.
I want to make my own properties file and JBoss on the fly should lift the properties file and log accordingly to files and console.
I tried to disable JBoss's log4j logging. But am unable to do it.

If I try to run a stand-alone java program (without JBoss Server) with a log4j properties file, it works fine and logs accordingly as given in my properties file.
But, if I try to run my application (on JBoss), it is not taking my properties file, but it is taking JBoss's log4j.xml and logs accordingly.
I tried to customize the log4j.xml, even that dint work for me.

I have deleted all the log4j.xml files, wherever I found in the %JBOSS_HOME% folder. Yet am not able to find the solution,even though, there is no xml file, even then, JBoss logs as if it is lifting the properties from an xml.

Please give me a solution to my problem.

TIA,

Regards,
Prashanth Babu.
 
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic