ThomasObenaus / go-base

Helper to simplify the creation of microservices with go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.