-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
as from the comment:
Lines 55 to 58 in 26eb1a2
| // slog.New(ToSlogHandler(logger)).Debug(...) -> logger.GetSink().Info(level=4, ...) | |
| // slog.New(ToSlogHandler(logger)).Warning(...) -> logger.GetSink().Info(level=0, ...) | |
| // slog.New(ToSlogHandler(logger)).Info(...) -> logger.GetSink().Info(level=0, ...) | |
| // slog.New(ToSlogHandler(logger.V(4))).Info(...) -> logger.GetSink().Info(level=4, ...) |
it seems that we have only 0-4 that could be used as non-error levels, and 0 as the default(log.Info() without V()).
this makes all the non-error as default printed levels, which leads to printing all Debug levels.
if I increase the level to 1-4, I will lose all the default Info() level logs.
this really confused me, may I ask how you use the level to switch different level detailed logs?
Reactions are currently unavailable