我想更改 nlog 布局,以便显示两个条目之间的时间。这样的布局可能吗?
这是我现在的输出,如果在时间旁边有自之前进入以来经过的秒数,那就太好了。
2012-05-20 19:18:41.0924|INFO|HashMatcher.LocalMatcherControl|99 archives discovered
2012-05-20 19:18:56.5267|INFO|HashMatcher.LocalMatcherControl|memory usage BEFORE loading samples 283.06 Mb
2012-05-20 19:18:56.5267|INFO|HashMatcher.LocalMatcherControl|performing sample scan
2012-05-20 19:19:08.9131|INFO|HashMatcher.LocalMatcherControl|memory usage BEFORE creating progress 285.43 Mb
2012-05-20 19:20:16.5804|INFO|HashMatcher.LocalMatcherControl|skipped progress 0
2012-05-20 19:20:17.6100|INFO|HashMatcher.LocalMatcherControl|memory usage BEFORE sorting progress 205.06 Mb