日志片段,类中的Logfactory声明

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了日志片段,类中的Logfactory声明相关的知识,希望对你有一定的参考价值。

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

以上是关于日志片段,类中的Logfactory声明的主要内容,如果未能解决你的问题,请参考以下文章