package
0.0.15
Repository: https://github.com/twgcode/sparrow.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

BetaBusinessLogCfg 测试 环境 默认日志配置; 输出到文件.
No description provided by the author
DevBusinessLogCfg 开发 环境 默认日志配置; 输出到文件.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LocalBusinessLogCfg 本地开发 环境 默认日志配置; 输出到控制台.
NewBusinessLoggerMgr 构建业务日志 记录器.
No description provided by the author
NewEncoderConfigTextDevDefault 开发环境默认的 EncoderConfig 配置.
No description provided by the author
NewEncoderConfigTextProdDefault 生产环境默认的 EncoderConfig 配置.
NewLogger 构建一个 日志实例.
No description provided by the author
ProdBusinessLogCfg 生产 环境 默认日志配置 输出到文件, 进行日志分级输出.
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
UatBusinessLogCfg uat/pre 环境 默认日志配置 输出到文件, 进行日志分级输出.
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
选择环境 LoggerConfig.EncoderConfigText.
No description provided by the author
No description provided by the author
选择 LoggerConfig.EncoderText 时使用.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
DefaultBusinessFileCfg 默认 业务 日志文件配置 默认 不会根据时间删除旧的日志文件.
根据不同的 LoggerConfig.EncoderConfigText 返回不同的生成 zapcore.EncoderConfig 的函数.
根据不同的 LoggerConfig.EncoderText 返回不同的生成 zapcore.Encoder 的函数.
ProdEnableStacktrace 生产环境 是否开启 高级别错误 堆栈信息记录.

# Structs

No description provided by the author
LoggerConfig 提供生成一个 zap.Logger + lumberjack 的配置.
LoggerFile 日志文件.