emabee/flexi_logger

Option to always use UTC

emabee opened this issue · 5 comments

What about introducing an option to always use UTC with no offset?

Originally posted by @snaar in #99 (comment)

tdudz commented

yes plz. don't want to deal with time vs. chrono and changing the implementation of my custom format function. also it spits out an error on boot each time that it cant use local on 0.20.1

i know i can now disable error from being printing but i don't want to disable all errors just to hide the ERRCODE:Time

tdudz commented

hi @emabee thanks for the quick turnaround on this

however, because of the lazy_static, the logger still tries to get the offset once on startup, even if use_utc is set to true. this makes the error message still print out, which is what i would like to avoid. any way you can modify flexi_logger to not evaluate the lazy_static if we're forcing it to use UTC? thanks

That’s ugly, indeed.

Version 0.22 is now out and should fix that!