Currently, Labels returns *zerolog.Event. So, we can't call Labels command more than once.
I want to do it as follows.
Do you think about this?
// prepare common label
commonLogger := logger.Info().Labels(zerodriver.Label("label", "common"))
commonLogger.Labels("phase", "1").Msg("hoge")
commonLogger.Labels("phase", "2").Msg("fuga")
Currently,
Labelsreturns*zerolog.Event. So, we can't call Labels command more than once.I want to do it as follows.
Do you think about this?