logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Bush <dan.b...@gmail.com>
Subject Re: Possible API Performance and Usability Enhancement
Date Mon, 29 Aug 2005 19:52:26 GMT
Excellent.

On 8/29/05, Ceki Gülcü <ceki@qos.ch> wrote:
> 
> Dan.
> 
> Are you aware of SLF4J API which already incorporates a similar approach?
> 
> See for example the Logger class:
> 
>    http://www.slf4j.org/api/org/slf4j/Logger.html
> 
> At 09:14 PM 8/29/2005, Dan Bush wrote:
> [cut]
> >USAGE 2: (SUGGESTED EXTENDED API)
> >  ============================
> >
> >logger.debug("ci:[{0}]", ci);
> >
> >Here I am using a wrapper method which does the isDebugEnabled()
> >within and then java.text.MessageFormat.format(String pattern,
> >Object[] arguments) if necessary. Of course I over load the signature
> >for convenience as well. For example debug:
> >
> >debug(String message, Object [])
> >debug(String message, Object obj0)
> >debug(String message, Object obj0, Object obj1)
> >debug(String message, Object obj0, Object obj1, Object obj2)
> >
> >Throwable ...
> >
> >- Dan
> 
> --
> Ceki Gülcü
> 
>    The complete log4j manual: http://www.qos.ch/log4j/
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
> 
>

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


Mime
View raw message