Categorygithub.com/everfir/logger-go
modulepackage
0.3.0
Repository: https://github.com/everfir/logger-go.git
Documentation: pkg.go.dev

# README

import package

go get github.com/everfir/logger-go@latest

run example

go run example/example.go

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
提供全局日志函数.
No description provided by the author
Extract 从上下文中提取trace信息.
No description provided by the author
No description provided by the author
Init 初始化全局日志器.
Inject 将trace信息注入到上下文中.
Start 开始一个span.
No description provided by the author
WithCompress 设置是否压缩旧日志文件.
No description provided by the author
WithErrorFiles 设置错误日志文件名.
WithLevel 设置日志级别.
WithMaxBackups 设置旧日志文件最大保留个数.
WithOutputFiles 设置日志输出文件名.
WithRotationTime 设置日志轮转时间间隔(分钟).
No description provided by the author
WithStackTrace 设置堆栈跟踪级别.
WithTracing 开启Tracing功能并设置OTEL Collector Endpoint.

# Type aliases

Option 定义配置选项函数类型.