Changing log level per session #1190
vikramchhibber
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have been enabling debug by calling "atomicLogLevel.SetLevel(zapcore.DebugLevel)". This has global effect. Is it possible to be selective and change level for a particular logger?
I am creating per session logger with some tag using With(zap.Field) API and would want to enable debug level for this logger based on some criteria.
Please let me know.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions