Ashish Kulkarni skrev  den 04-08-2008 21:45:
Hi
Is there anyway to format the log messages using java 1.5 format
capabilities
for example i can have a nice formatted out put using
System.out.format("Number of Users on Registry %1$s, is %2$d",
registry.getName(), userSet.size());
Use slf4j as the logging interface and use log4j as the backend.

You can then call

log.debug("Name: {} Size {}", "Foo", new Integer(10));


--
 Thorbjørn Ravn Andersen          "... plus... Tubular Bells!"


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to