simple logger with golang
func TestNewLog(t *testing.T) {
log := New(os.Stdout)
log.Info().Msg("hello world")
log.Debug().Msg("hello world")
log.Warn().Msg("hello world")
log.Error().Msg("hello world")
}
{"level":"info","message":"hello world"}
{"level":"debug","message":"hello world"}
{"level":"warn","message":"hello world"}
{"level":"error","message":"hello world"}