File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Custom Levels in Log4j 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 » Other Open Source Projects
Bookmark "Custom Levels in Log4j" Watch "Custom Levels in Log4j" New topic
Author

Custom Levels in Log4j

Sudhakar Rao
Ranch Hand

Joined: May 21, 2005
Posts: 36
Hi,
I created one custom level. I want to know how to pass it in the log4j-config.properites file.
Thanks in Advance
Sudhakar
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9315
    
109

I am not sure how will mention it in log4j.properties but i was able to get it working with log4j.xml as mentioned Create your own logging level in log4j


[My Blog] [JavaRanch Journal]
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
after the custom level name include the "#" sign followed by the fully qualified name of the class.



See Prior discussion on this topic.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Custom Levels in Log4j
 
Similar Threads
Debugging Best Practices??
How to seperate new line with log4j?
Adding Date & time Stamp in Log file name
how to log errors occurred in backend java engine or servlet
Connection reset by peer: socket write error