这是可能的,而不必编码适配器?如何配置Log4j以避免具有相同内容的连续日志?
log.info("test1"); //12/07/2012 10:08:51
log.info("test1"); //12/07/2012 10:08:52
log.info("test2"); //12/07/2012 10:08:53
log.info("test2"); //12/07/2012 10:08:54
log.info("test3"); //12/07/2012 10:08:55
log.info("test1"); //12/07/2012 10:08:56
预期输出:
12/07/2012 10时08分51秒INFO - teste1
12/07/2012 10时08分53秒INFO - teste2
12/07/2012 10时08分55秒INFO - teste3
12/07/2012 10时08分56秒INFO - teste1
很确定答案是“否”。 – jtahlborn 2012-07-12 16:48:47