logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: Possible API Performance and Usability Enhancement
Date Mon, 29 Aug 2005 19:37:14 GMT


Are you aware of SLF4J API which already incorporates a similar approach?

See for example the Logger class:


At 09:14 PM 8/29/2005, Dan Bush wrote:
>  ============================
>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

View raw message