gookit / slog

📑 Lightweight, configurable, extensible logging library written in Go. Support multi level, multi outputs and built-in multi file logger, buffers, clean, rotate-file handling.一个易于使用的,轻量级、可配置、可扩展的日志库。支持多个级别,输出到多文件;内置文件日志处理、自动切割、清理、压缩等增强功能
https://pkg.go.dev/github.com/gookit/slog
MIT License
397 stars 25 forks source link

Trying to understand slog log levels #17

Closed hackquest-grid closed 3 years ago

hackquest-grid commented 3 years ago

It looks to me that levels are inverted compared to the usual things, for example :

That's usually the opposite, when setting Error level, we only want errors. If setting Info we want errors, warning and info messages, an so on.

Is there something I didn't understand ?

inhere commented 3 years ago

sorry, My check is wrong :(

hackquest-grid commented 3 years ago

sorry, My check is wrong :(

No problem, the important is that is fixed ;-)