请问有没有人遇到过日志打印不全的情况,我是配置了rsyslog网络打印,但是打印过去不全,会以...结束
log4j配置如下:
log4j.rootLogger = info,stdout,net-log
### 输出到控制台 ###
log4j.appender.stdout = org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target = System.out
log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [%l] - [%p] %m%n
### 输出到日志文件 ###
log4j.appender.net-log = org.apache.log4j.net.SyslogAppender
log4j.appender.net-log.SyslogHost = 127.0.0.1
log4j.appender.net-log.Facility = LOCAL6
log4j.appender.net-log.Threshold = INFO
log4j.appender.net-log.layout = org.apache.log4j.PatternLayout
log4j.appender.net-log.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [%l] - [%p] %m%n
以上ConversionPattern一模一样,但是控制台是全的,rsyslog里的不全,截断后以...结束了