zerolog
zerolog copied to clipboard
Set / modify time format per logger instance
I would like to change a time format for different logger instances, but currently the time format is set by the global constant zerolog.TimeFieldFormat
and used explicitly in timestamp hook https://github.com/rs/zerolog/blob/55aaf043cf4d84249a6d2344ef18d82279d08955/event.go#L647-L653:
You catch it, that's one reason of why I re-write another similar logger instead of forking. maybe worth see https://github.com/phuslu/log#logger
seems pretty good, will try it soon