日志片段,类中的Logfactory声明
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了日志片段,类中的Logfactory声明相关的知识,希望对你有一定的参考价值。
import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * Logging facilities provided by Apache Commons Logging. When using log4j, * logging facilities are configured in the {@code log4j.properties} file, * which must be in the {@code CLASSPATH}. */ private static final Log logger = LogFactory.getLog(CLASSNAME_HERE.class);
以上是关于日志片段,类中的Logfactory声明的主要内容,如果未能解决你的问题,请参考以下文章
ServiceBase.OnStop 期间的 NLog LogManager.LogFactory.Flush
Logger.getLogger()和LogFactory.getLog()的区别
Logger.getLogger和LogFactory.getLog的区别
Logger.getLogger和LogFactory.getLog的区别