Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 21st, 2012  |  syntax: None  |  size: 0.25 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public class FooComponent {
  2.  
  3.         private static final Logger logger = LoggerFactory.getLogger(FooComponent.class);
  4.        
  5.         public void foo() {
  6.                
  7.                 String name = "Alex";
  8.                
  9.                 logger.info("Hello from Foo.");
  10.                
  11.                 logger.debug("In foo my name is {}.", name);
  12.                
  13.         }
  14.        
  15. }