问题描述
I wonder if there is way to retrieve the last inserted log to my log4j log file ? Also, I need it to be run while unit-testing on Spock.
Thanks!
推荐答案
You can always write your own appender where log messages go through:
I wonder if there is way to retrieve the last inserted log to my log4j log file ? Also, I need it to be run while unit-testing on Spock.
Thanks!
You can always write your own appender where log messages go through: