提问人:Michael Harris 提问时间:8/11/2023 更新时间:8/11/2023 访问量:16
log4net 跳过一些调试日志
log4net skipping some debug logs
问:
总结
在相同的方法中,调试日志成功,而其他日志则被跳过。
法典
...
using (var package = new ExcelPackage(fileInfo))
{
... do stuff to package
// this gets skipped
logger.DebugFormat("File length before saving: {0}", fileInfo.Length);
package.Save(); // not async, returns void
// this goes through as expected
logger.DebugFormat("File length after saving: {0}", fileInfo.Length);
... other stuff
// this also works
logger.Debug("foo");
// but then this doesn't
logger.Debug("bar");
}
如果我的调试日志都没有活着出来,那就更有意义了。如果我的一个调试日志成功了,但没有其他日志,那会很奇怪,但仍然比一些工作和一些不工作更有意义......也总是以相同的顺序。
有什么想法吗?
答: 暂无答案
评论