Essential.Diagnostics contains additional trace listeners, filters and utility classes for the .NET Framework System.Diagnostics trace logging. Included are colored console, SQL database, rolling file, Seq logging server, and in-memory trace listeners, expression filters, activity and logical operation scopes, and configuration file monitoring.
Microsoft Reciprocal License
69
stars
25
forks
source link
RollingFileTraceListener: StartupDateTime as template #33
As much as I like the RollingFileTraceListener, I would love to have a "StartupDateTime" as parameter in the initializeData. This would allow me to have a filename with "HH-mm-ss" in the template, and the RollingFileTraceListener not to write to a different file every second.
The StartupDateTime would have a private DateTime variable, which is allocated only once on startup.
As much as I like the RollingFileTraceListener, I would love to have a "StartupDateTime" as parameter in the initializeData. This would allow me to have a filename with "HH-mm-ss" in the template, and the RollingFileTraceListener not to write to a different file every second. The StartupDateTime would have a private DateTime variable, which is allocated only once on startup.