What the best rollover log file tracelistener for .NET

前端 未结 9 604
太阳男子
太阳男子 2020-12-28 13:43

I\'m looking for a good TraceListener for .Net that supports rolling over the log file based on size limits.

Constraints

  • Uses .Net b
9条回答
  •  半阙折子戏
    2020-12-28 14:09

    You could use Microsoft.VisualBasic.Logging.FileLogTraceListener, which comes built-in with the .NET Framework. Don't let the VisualBasic in the namespace scare you, you'll just have to reference the microsoft.visualbasic.dll assembly and it should work fine with C#.

提交回复
热议问题