Re: [PROPOSAL] Implementing the SLF4J API directly

2008-12-09 Thread Ceki Gulcu
Paul Smith wrote: If logger implements org.slf4j.Logger, then one can write String name = "Scott"; logger.debug("Hello Scott"); logger.debug("Hello {}", name); Both log statements will print as "Hello Scott". However, the latter log statement will contain 'name' as a parameter. The SLF4J imp

Re: [PROPOSAL] Implementing the SLF4J API directly

2008-12-09 Thread Thorbjørn Ravn Andersen
Paul Smith skrev den 09-12-2008 02:46: private static String getFormattedMessage(String message, Object... args) { String formattedMessage = message; if (args != null && args.length > 0) { formattedMessage = String.format(message, args); } retur

Re: [PROPOSAL] Implementing the SLF4J API directly

2008-12-09 Thread Curt Arnold
On Dec 9, 2008, at 4:58 AM, Thorbjørn Ravn Andersen wrote: There was a request recently to make the argument replacement mechanism more powerful in either slf4j or logback (cannot remember) where Ceki mentioned that one of the major benefits of the {}- approach was that it was measurably fas