Re: configurable logging in Log4j
Posted By:
ankush_purwar
Posted On:
Tuesday, January 31, 2006 10:39 PM
I don't know exact ur requirement.But the similar kind of stuff hava already been provided by Log-4j.
Look at the Threshold property of logger and appeanders.
If you have defined threshold say as warn, it means there will be no logging at debug and info level.
So why not you try to map your configuration conditions to log-4j levels and let rest thing by Log-4j.