This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Need to do logging with my own log4j.properties with jboss 6.0! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Need to do logging with my own log4j.properties with jboss 6.0!" Watch "Need to do logging with my own log4j.properties with jboss 6.0!" New topic
Author

Need to do logging with my own log4j.properties with jboss 6.0!

yuvaraj KumarAmudhan
Ranch Hand

Joined: Aug 22, 2009
Posts: 110
Hello All!

I need to do "logging" with my own log4j.properties with jboss 6.0! Is it possible to configure?
If yes, how to disable the already existing jboss's log4j service!

Thank You!


Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

JBoss AS6 does not use log4j as its logging service - i.e. it doesn't ship with its own log4j.xml or log4j.properties. So all you have to do is package a log4j.properties or log4j.xml in your application so that it becomes available in the classpath. This file will then be used by log4j.

[My Blog] [JavaRanch Journal]
yuvaraj KumarAmudhan
Ranch Hand

Joined: Aug 22, 2009
Posts: 110
Thank You Jaikiran!

problem resolved!

Logging is working in my application
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to do logging with my own log4j.properties with jboss 6.0!
 
Similar Threads
logging in JBOSS
Disable struts logging
Jboss can not recognize custom log4j.properties file
Doubt in verifying "the application defined logging properties (not AS defined)" with jboss 6.0
Using your own log4j.properties file