Categorygithub.com/fzls/logger
modulepackage
1.1.1
Repository: https://github.com/fzls/logger.git
Documentation: pkg.go.dev

# README

logger

对github.com/sirupsen/logrus库的封装,调整时间格式和输出格式,同时输出在日志文件和console,方便个人在其他项目使用。

# Functions

GetLogLevel 获取日志等级 可能的值有 "trace","debug","info","warn","warn","error".
GetLogLevelColorCode 获取日志等级对应色彩code.
GetLogLevels 获取日志等级列表 可能的值有 "trace","debug","info","warn","warn","error".
No description provided by the author
NewBuffer 从池中获取新 bytes.Buffer.
NewFileHook 初始化本地日志钩子实现.
PutBuffer 将 Buffer放入池中.
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
ResetSet 重置色彩 ansi code.
SettingTpl 开始色彩 ansi code.
No description provided by the author
No description provided by the author

# Structs

FileHook logrus本地钩子,写到文件中.
LogFormat specialize for go-cqhttp.