A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Other Open Source Projects
log4j : How To set Min And Max Level Messages
Joined: Jul 19, 2009
Aug 18, 2009 23:12:03
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.
Roll with punchers, there is always tomorrow.
Techie Blog --
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
Can Log4j read two properties?
Log4J Debug levels and over-riding
log4j: stop logging to console
Problem configuring Hibernate and JPA in Eclipse
problem with java logging
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014