Documentation ¶
Index ¶
- Variables
- func Debug(args ...any)
- func Debugf(format string, args ...any)
- func Error(args ...any)
- func Errorf(format string, args ...any)
- func Info(args ...any)
- func Infof(format string, args ...any)
- func SetColorful(colorful bool)
- func SetLevel(level LogLevel)
- func Warn(args ...any)
- func Warnf(format string, args ...any)
- type ColorType
- type LogLevel
- type Logger
- func (l *Logger) Color(col *ColorType)
- func (l *Logger) Colorful(colorful bool)
- func (l *Logger) Debug(args ...any)
- func (l *Logger) Debugf(fmt string, args ...any)
- func (l *Logger) Error(args ...any)
- func (l *Logger) Errorf(fmt string, args ...any)
- func (l *Logger) Info(args ...any)
- func (l *Logger) Infof(fmt string, args ...any)
- func (l *Logger) SetLevel(level LogLevel)
- func (l *Logger) Warn(args ...any)
- func (l *Logger) Warnf(fmt string, args ...any)
- type XLogger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Reset = &reset // 标准 White = &white Red = &red Green = &green Yellow = &yellow Blue = &blue Magenta = &magenta Cyan = &cyan // 高亮 WhiteBright = &whiteBright RedBright = &redBright GreenBright = &greenBright YellowBright = &yellowBright BlueBright = &blueBright MagentaBright = &magentaBright CyanBright = &cyanBright // 斜体 WhiteBevel = &whiteBevel RedBevel = &redBevel GreenBevel = &greenBevel YellowBevel = &yellowBevel BlueBevel = &blueBevel MagentaBevel = &magentaBevel CyanBevel = &cyanBevel // 下划线 WhiteUnderLine = &whiteUnderLine RedUnderLine = &redUnderLine GreenUnderLine = &greenUnderLine YellowUnderLine = &yellowUnderLine BlueUnderLine = &blueUnderLine MagentaUnderLine = &magentaUnderLine CyanUnderLine = &cyanUnderLine // 背景色 WhiteBg = &whiteBg RedBg = &redBg GreenBg = &greenBg YellowBg = &yellowBg BlueBg = &blueBg MagentaBg = &magentaBg CyanBg = &cyanBg // 删除线 WhiteDelLine = &whiteDelLine RedDelLine = &redDelLine GreenDelLine = &greenDelLine YellowDelLine = &yellowDelLine BlueDelLine = &blueDelLine MagentaDelLine = &magentaDelLine CyanDelLine = &cyanDelLine )
Functions ¶
func SetColorful ¶
func SetColorful(colorful bool)
Types ¶
Click to show internal directories.
Click to hide internal directories.