Java Logging
<cebmailbox-trijug-/[email protected]>
| Newsgroups | gmane.org.user-groups.trijug.juglist |
|---|---|
| Message-ID | <[email protected]> |
So what's the deal.
Every where you read, Java Logging is cheap with formatting done only if the level is appropriate etc.
But if I do this:
logger.info(String.format("Hello %s\n", name));
Isn't the formatting done up front?
How can I defer the formatting until the level is checked without checking the level myself everytime?
Anyone have any ideas?
-Chris
_______________________________________________
Juglist mailing list
[email protected]
http://trijug.org/mailman/listinfo/juglist_trijug.org