What the best rollover log file tracelistener for .NET

前端 未结 9 624
太阳男子
太阳男子 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:17

    As given in one of the comments:

    FileLogTraceListener Class

    Writes to a rolling text file.

    Remarks

    A new file is used when the maxFileSize is reached, as well as a daily or weekly basis as specified by logFileCreationSchedule.

    Each file has a name in the format "\(-)(-).log", with the local date included for daily and weekly rotation, and a sequence number appended if the file already exists.

提交回复
热议问题