一代码宗师

Results 2 issues of 一代码宗师

I want to log the command line, how can I do this?

在程序运行过程,有时候为了定位问题,有动态设置日志级别的需求,但没有找到方便友好的设置接口。 slog.SetLogLevel(lvl)只在std logger上生效。 请问有没有方便友好的动态设置日志级别接口? ```go package logger import ( "github.com/gookit/slog" "github.com/gookit/slog/handler" "github.com/gookit/slog/rotatefile" ) var ( Log1 *slog.Logger Log2 *slog.Logger AppLog *slog.Record CfgLog *slog.Record ) func init() { logTemplate := "[{{datetime}}]...

question