File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Other Open Source Projects
Custom Levels in Log4j
Joined: May 21, 2005
Dec 07, 2006 21:50:00
I created one custom level. I want to know how to pass it in the log4j-config.properites file.
Thanks in Advance
Joined: Jul 20, 2005
Dec 07, 2006 22:22:00
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
Joined: Oct 10, 2000
Dec 08, 2006 08:33:00
after the custom level name include the "#" sign followed by the fully qualified name of the class.
Prior discussion on this topic
It is sorta covered in the
JavaRanch Style Guide
subject: Custom Levels in Log4j
how to log errors occurred in backend java engine or servlet
Debugging Best Practices??
Adding Date & time Stamp in Log file name
Connection reset by peer: socket write error
How to seperate new line with log4j?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014