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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.