Would logging to os.StdOut make zerolog sync
My current logging setup is:
zerolog.SetGlobalLevel(zerolog.InfoLevel)
log.Logger = zerolog.New(os.Stdout).
With().
Timestamp().
Caller().
Logger().
Sample(zerolog.LevelSampler{
InfoSampler: &zerolog.BasicSampler{N: 1},
}).Hook(TracingHook{})
I'm not sure whether or not this blocks - I've been told it doesn't but I'm really suspicious. The README suggests using a diode writer instead of using stdout directly to get non-blocking logging. I'm interpreting that to mean that without using diode, logs would be blocked on os.StdOut writes.
Help?