log4j 1.2.12以递增方式打印字符串:O

问题描述 投票:0回答:1

在我的项目中,log4j(1.2.12)在任何级别以递增方式打印字符串。例如:

17-09-2018 15:08:18 DEBUG DataServicesImpl:32 - ::::操作引用UPLOAD OK保存OK 11014967结果[default task-32] DEBUG [...]。Model.service.impl.AnagraficaServiceImpl - : :::操作参考UPLOAD OK保存OK OK 10214967 [default task-32] DEBUG [...] .Mode.service.impl.AnagraficaServiceImpl - ::::操作参考UPLOAD OK保存OK 11014967 [默认任务 - 32] DEBUG [...] .Mode.service.impl.AnagraficaServiceImpl - ::::操作引用UPLOAD OK保存OK OK 10214967 [default task-32] DEBUG [...]。Model.service.impl.AnagraficaServiceImpl - ::::操作参考UPLOAD OK保存OK OK 10214967 [default task-32] DEBUG [...] .Mode.service.impl.AnagraficaServiceImpl - ::::操作参考UPLOAD OK保存OK 11014967 [默认task-32] DEBUG [...]。model.service.impl.AnagraficaServiceImpl - ::::引用操作UPLOAD OK保存,OK结果

如您所见,这些行具有相同的时间戳。在这种情况下,有7个日志字符串,并在下一次操作通过“[...]。model”库时,它们将变为8,然后是9,然后是n!直到server.log没有饱和,然后jboss(AS 1.7)重新启动!!请帮我 !!!

如果您遇到类似这样的事情,并且您需要有关log4j.propertiesjboss-deployment-structurestandalone.xmlpom.xml或您要求的任何其他配置的版本和详细信息的更多信息。谢谢!

log4j jboss7.x appender fileappender
1个回答
0
投票

解决了!!!!

fyi:在库中有BasicConfigurator.configure()方法(log4j),它为stdout根目录中的日志创建一个appender。删除了指令,问题解决了! :d

© www.soinside.com 2019 - 2024. All rights reserved.