aspose 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
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Custom Levels in Log4j" Watch "Custom Levels in Log4j" New topic

Custom Levels in Log4j

Sudhakar Rao
Ranch Hand

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

Joined: Jul 20, 2005
Posts: 10403

I am not sure how will mention it in 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
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.
wood burning stoves
subject: Custom Levels in Log4j