wood burning stoves 2.0
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 10441

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
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
It's not a secret anymore!