Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
344 views
in Technique[技术] by (31.9m points)

log4J打印日志,时间乱了

image.png

如图所示,为什么log4j打印的日志,时间会是乱的呢?不应该是按照时间顺序的吗?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (31.9m points)

多线程?

多线程都输出的话就会乱,这是必然的。

要么你就按线程分别输出日志,找起来也方便一些。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...