package
0.0.0-20241220050135-f615dff9db3f
Repository: https://github.com/ahang7/go-iam.git
Documentation: pkg.go.dev
# README
IAM 日志库
参考
日志处理
基础功能
- 支持基础的日志信息:
- 支持不同的日志级别
- 支持自定义配置
- 支持输出到标准输出和保存到文件
高级功能
- 支持多种日志格式
- 支持按级别分类输出
- 支持结构化日志
- 支持日志轮转
- 具备Hook能力
额外可选功能
- 支持颜色输出
- 兼容标准库log
- 支持输出到不同位置
# Functions
CheckInternal 函数根据传入的级别值,检查当前 logger 是否能够记录该级别的日志.
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
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
FromContext 函数根据上下文提取 Logger 实例.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
New 函数创建一个新的 zapLogger.
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
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
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
# Constants
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
# Variables
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
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
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
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
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
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
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
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
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
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
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
InfoLogger 定义了日志信息记录的接口。 它提供了多种方式来记录日志信息,包括简单信息、格式化信息和自定义字段的信息.
Logger 定义了日志记录器的接口,表示能够记录消息,包括错误和非错误.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author