Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConsoleWriter uses the level field key to be invalid or panic? #664

Closed
sishui opened this issue Apr 8, 2024 · 1 comment
Closed

ConsoleWriter uses the level field key to be invalid or panic? #664

sishui opened this issue Apr 8, 2024 · 1 comment

Comments

@sishui
Copy link

sishui commented Apr 8, 2024

	l := zerolog.New(zerolog.ConsoleWriter{Out: os.Stdout}).
		With().
		Timestamp().
		Caller().
		Logger()
	l.Info().Str("level", "level-str").Msg("test string") // invalid, 
	//l.Debug().Int32("level", 9).Msg("test int32")  // panic
	//l.Debug().Int("level", 9).Msg("test int")  // panic
	l.Debug().Int64("level", 9).Msg("test int64") //panic
@ndk
Copy link
Contributor

ndk commented Apr 10, 2024

#665

@sishui sishui closed this as completed May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants