jQuery in Action, 2nd edition*
The moose likes Other Open Source Projects and the fly likes log4j :  How To set Min And Max Level Messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "log4j :  How To set Min And Max Level Messages" Watch "log4j :  How To set Min And Max Level Messages" New topic
Author

log4j : How To set Min And Max Level Messages

Tanzy Akhtar
Ranch Hand

Joined: Jul 19, 2009
Posts: 110
Hi there,

Well i am going to use log4j with log4j.properties in such a way so that it should log
the messages in between given levels.

For example-- i want to create a log file, say myLog.txt, in such a way it will contain only messages of level info and warn.

By using threshold property we can set the minimum level, here info, but how about setting max level?

Please note i can not use log4j.xml as per per my project architecture otherwise there is option of setting levelMin and levelMax.


Any cognitive help will be appreciated.

Thanks,
Tanzeem.


Roll with punchers, there is always tomorrow.
Techie Blog -- http://jtanzy.blogspot.com/
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: log4j : How To set Min And Max Level Messages
 
Similar Threads
Log4J Debug levels and over-riding
problem with java logging
Problem configuring Hibernate and JPA in Eclipse
Can Log4j read two properties?
log4j: stop logging to console