logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: Wrapping logger
Date Wed, 08 Feb 2006 17:25:41 GMT
I strongly recommend avoiding it.

Many people feel that the need to add a new level when they are  
really trying to control the audience that receives the message, not  
the significance of the message to the audience.  If you are trying  
to control the audience, you can accomplish that through use of the  
logger name which does not require extending log4j.

See previous threads on this topic like:


If you still think you want to add a custom level, describe your  
scenario and maybe we can help you reach a better solution.

On Feb 8, 2006, at 9:57 AM, DeSantis, MJ Mark @ IS (7179) wrote:

> If I wanted to provide my own logger class which provided extra  
> logging
> method calls associated with custom levels for my application, what  
> is the
> best way to wrap log4j's Logger class? Do I have to be concerned with
> implementing LoggerFactory?
> If anyone has done this please let me know and explain to how to do  
> this.
> Mark

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message