# ConsoleAppender out
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{yyyy/MM/dd
HH:mm:ss} %-5p %-10C{1} %m%n
# File out
//日志 Appender 修改为 flume 提供的 Log4jAppender
log4j.appender.R=org.apache.flume.clients.log4jappender.L
og4jAppender
log4j.appender.R.File=${catalina.home}/logs/
ultraIDCPServer.log
//日志需要发送到的端口号,该端口要有 ARVO 类型的 source 在监听
log4j.appender.R.Port = 44444
//日志需要发送到的主机 ip,该主机运行着 ARVO 类型的 source
log4j.appender.R.Hostname = localhost
log4j.appender.R.MaxFileSize=102400KB
# log4j.appender.R.MaxBackupIndex=5
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{yyyy/MM/dd
HH\:mm\:ss} %-5p %-10C{1} %m%n
log4j.appender.R.encoding=UTF-8
log4j.logger.com.ultrapower.ultracollector.webservice.Mes
sageIntercommunionInterfaceImpl=INFO,webservice
log4j.appender.webservice=org.apache.log4j.FileAppender
log4j.appender.webservice.File=${catalina.home}/logs/
logsMsgIntercommunionInterface.log
log4j.appender.webservice.layout=org.apache.log4j.Pattern
评论1
最新资源