package
0.0.0-20241106013813-926841a6acba
Repository: https://github.com/xyzj/toolbox.git
Documentation: pkg.go.dev
# Functions
NewConsoleLogger 返回一个纯控制台日志输出器.
No description provided by the author
NewLogger init logger
d: 日志保存路径
f:日志文件名,为空时仅输出到控制台
logLevel 日志等级,1-输出到控制台,10-debug(输出到控制台和文件),20-info(输出到文件),30-warning(输出到文件),40-error(输出到控制台和文件),90-system(输出到控制台和文件)
logDays 日志文件保留天数
delayWrite 是否延迟写入,在日志密集时,可减少磁盘io,但可能导致日志丢失.
No description provided by the author
NewWriter 一个新的log写入器
opt: 日志写入器配置.
# 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
ShortTimeFormat 日志事件戳格式.
# Structs
No description provided by the author
NilLogger 空日志.
OptLog OptLog.
StdLogger mx log.
Writer 自定义Writer.
# Interfaces
Logger 日志接口.
# Type aliases
No description provided by the author