# README
log
log 目前最低级别是 debug,可以通过 LOG_LEVEL 环境变量或者配置项指定。
log 会记录上下文信息,所以需要传入一个 ctx 才能获取 log 实例。
示例
import "github.com/learninto/goutil/log"
log.Get(ctx).Errorf("1 + 2 = %d", 1 + 2)
log.Errorf(ctx, "1 + 2 = %d", 1 + 2)
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Get 获取日志实例.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PP 类似 PHP 的 var_dump.
Reset 使用最新配置重置日志级别.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
Fields fields.