1 package myorg.mypackage.ex1; 2 3 import org.slf4j.Logger; 4 import org.slf4j.LoggerFactory; 5 6 public class App { 7 private static Logger logger = LoggerFactory.getLogger(App.class); 8 9 public int returnOne() { 10 //System.out.println( "Here's One!" ); 11 logger.debug( "Here's One!" ); 12 return 1; 13 } 14 15 public static void main( String[] args ) { 16 //System.out.println( "Hello World!" ); 17 logger.info( "Hello World!" ); 18 } 19 }