集成 Trace
的 Log
中间件, 遵循 OpenTelemetry
规范.
import github.com/fuyibing/log/v5
包初始化时,自动从配置文件(config/log.yaml)文件中读取配置参数,若未指定则使用默认值
H3
logger-exporter: "term"
logger-exporter: "file"
file-logger:
path: "/var/logs"
folder: "2006-01"
name: "2006-01-02"
ext: "log"