viper25

Java Logging using Apache Logging

Sep 16th, 2016
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. import org.apache.commons.logging.Log;
  2. import org.apache.commons.logging.LogFactory;
  3.  
  4. public class MyClass
  5. {
  6.     private static final Log LOG = LogFactory.getLog(MyClass.class);
  7.     public static void main(String[] args)
  8.     {
  9.         LOG.info("This is a log");
  10.    
  11.     }
  12.    
  13. }
Advertisement
Add Comment
Please, Sign In to add comment