Global TimeFieldFormat is changed in LoggerFactory
ThomasObenaus opened this issue · comments
This can lead to race conditions (especially in tests that run in parallel). Furthermore its not needed to modify the zerolog.TimeFieldFormat globally. Instead it just can be set locally for the newly created logger.