Guest User

What's Up with Logging in Java

a guest
Feb 27th, 2012
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. logger.debug("The entry is {}.", entry);
  2. //which expands effectively to
  3. if (logger.isDebugEnabled()){
  4. // Note that it's actually *more* efficient than this - see Huxi's comment below...
  5. logger.debug("The entry is " + entry + ".");
  6. }
Add Comment
Please, Sign In to add comment