Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogLevelColorCode ¶
GetLogLevelColorCode 获取日志等级对应色彩code
Types ¶
type LocalHook ¶
type LocalHook struct {
// contains filtered or unexported fields
}
LocalHook logrus本地钩子
func NewLocalHook ¶
func NewLocalHook(args any, consoleFormatter, fileFormatter logrus.Formatter, levels ...logrus.Level) *LocalHook
NewLocalHook 初始化本地日志钩子实现
func (*LocalHook) SetFormatter ¶
SetFormatter 设置日志格式
Click to show internal directories.
Click to hide internal directories.