Log4j 1.2 用法
|
Log4j 2.0 用法
|
log4j.appender.epmPerformanceLogFile.layout=wt.log4j.jmx.TSVLayout
|
appender.epmPerformanceLogFile.layout.type = TSVLayout
|
Log4j 1.2 用法
|
Log4j 2.0 用法
|
log4j.appender.IncomingRmiStats.threshold=WARN
|
appender.IncomingRmiStats.filter.threshold.type=ThresholdFilter
appender.IncomingRmiStats.filter.threshold.level=WARN |
Log4j 1.2 用法
|
Log4j 2.0 用法
|
用于启用记录器的 Log4j 1.2 用法:
log4j.logger.com.ptc.windchill.upgrade=WARN
|
用于启用记录器的 Log4j 2.0 用法:
logger.WCUpgrade.name=com.ptc.windchill.upgrade
logger.WCUpgrade.level=WARN 其中,WCUpgrade 可以是任意名称,但必须是唯一的。
|
用于附加多个附加器的 Log4j 1.2 用法
# Limit com.infoengine.log* loggers to outputting to methodServerLogFile and MiscLogEvents
log4j.logger.com.infoengine.log=, methodServerLogFile, MiscLogEvents log4j.additivity.com.infoengine.log=false |
用于附加多个附加器的 Log4j 2.0 用法
# Limit com.infoengine.log* loggers to outputting to methodServerLogFile and MiscLogEvents
#Make sure to change the package structure as per your application logger.infoengineLog.name=com.infoengine.log logger.infoengineLog.additivity=false logger.infoengineLog.appenderRef.methodServerLogFile.ref=methodServerLogFile logger.infoengineLog.appenderRef.MiscLogEvents.ref=MiscLogEvents |