MetroLog icon indicating copy to clipboard operation
MetroLog copied to clipboard

Expose method to customize the MetroLog.LogManager.DateTimeFormat

Open ptedeschi opened this issue 8 years ago • 3 comments

The DateTimeFormat is defined as an internal const. Developers should be able to change the format string.

ptedeschi avatar Mar 08 '16 14:03 ptedeschi

I agree with this suggestion ... I will also add customization to the timezone that seems impossible.

Aymeeeric avatar Sep 28 '16 15:09 Aymeeeric

I also would like to change the time from UTC.

eresing avatar Mar 17 '17 16:03 eresing

I used this workaround to show local time using a custom layout. http://stackoverflow.com/questions/43992460/logging-in-local-time-in-metrolog/43993585#43993585 We can use the default layouts as templates https://github.com/onovotny/MetroLog/blob/dev/MetroLog.Shared/Layouts/SingleLineLayout.cs https://github.com/onovotny/MetroLog/blob/dev/MetroLog.Shared/Layouts/FileSnapshotLayout.cs

Raamakrishnan avatar May 16 '17 15:05 Raamakrishnan