daboross / fern

Simple, efficient logging for Rust
MIT License
848 stars 51 forks source link

Syslog only logs in UTC #127

Closed fsmv closed 1 year ago

fsmv commented 1 year ago

Everything else on my system seems to use local time. I'd think that the default should be local time rather than UTC when using syslog. If not that then somehow making it configurable would be appreciated by me.

Is it supposed to be getting local time and there's something I'm missing?

fsmv commented 1 year ago

Oh, I didn't realize fern was using a library for syslog. It's because of this https://github.com/Geal/rust-syslog/blob/ee861eb1cfea4c6d1c534e3ccba9c3f2d92b762b/src/format.rs#L229

fsmv commented 1 year ago

I was able to get what I wanted by using the features = ["syslog-4"] option, since this bug was added in syslog 6