Snippet of Log,Logfactory declaration in class

/ Published in: Java
Save to your folder(s)

Copy this code and paste it in your HTML
  1. import org.apache.commons.logging.Log;
  2. import org.apache.commons.logging.LogFactory;
  4. /**
  5. * Logging facilities provided by Apache Commons Logging. When using log4j,
  6. * logging facilities are configured in the {@code} file,
  7. * which must be in the {@code CLASSPATH}.
  8. */
  9. private static final Log logger =
  10. LogFactory.getLog(CLASSNAME_HERE.class);

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.