package
1.0.2
Repository: https://github.com/busyfree/shorturl-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

log

log 目前最低级别是 debug,可以通过 LOG_LEVEL 环境变量或者配置项指定。

log 会记录上下文信息息,所以需要传入一个 ctx 才能获取 log 实例。

示例

import "github.com/busyfree/shorturl-go/util/log"

log.Get(ctx).Errorf("1 + 2 = %d", 1 + 2)