djonasdev / NLogViewer

NlogViewer is a ui control library to visualize NLog logs
MIT License
88 stars 23 forks source link

24h time format #102

Open BSxJMO opened 3 days ago

BSxJMO commented 3 days ago

Could you please change the timestamp to the 24h format or make it configurable? Thank you

Edit: This would be return logEventInfo.TimeStamp.ToString("dd-MM-yyyy HH:mm:ss.fff"); instead of return logEventInfo.TimeStamp.ToString("dd-MM-yyyy hh:mm:ss.fff"); in the resolver.

djonasdev commented 3 days ago

I'm not sure if I understand your question correctly, but can't this be solved with an custom ILogEventInfoResolver (https://github.com/djonasdev/NLogViewer?tab=readme-ov-file#format-output-ilogeventinforesolver)?