Documentation
¶
Index ¶
- func Black(s string) string
- func BlackB(s string) string
- func Blue(s string) string
- func BlueB(s string) string
- func Bold(s string) string
- func Clear(s string) string
- func Count(s string) int
- func Cyan(s string) string
- func CyanB(s string) string
- func Data(s ...any)
- func Dataf(format string, s ...any)
- func Debug(s ...any)
- func Debugf(format string, s ...any)
- func Disabled()
- func Enabled()
- func Error(s ...any)
- func Errorf(format string, s ...any)
- func GetCallerLevel() int
- func Green(s string) string
- func GreenB(s string) string
- func Important(s string) string
- func Info(s ...any)
- func Infof(format string, s ...any)
- func Italic(s string) string
- func LogString(level Level, s string) string
- func Overturn(s string) string
- func Printf(level Level, format string, s ...any)
- func Println(level Level, s ...any)
- func Purple(s string) string
- func PurpleB(s string) string
- func Random(s string) string
- func RandomImportant(s string) string
- func Red(s string) string
- func RedB(s string) string
- func SetCallerLevel(level int)
- func SetLevel(level Level)
- func SetOutput(writer io.Writer)
- func SetOutputFile(level Level, fileName string)
- func StrMapRandomColor(m map[string]string, printKey bool, importantKey []string, ...) string
- func StrSliceRandomColor(strSlice []string) string
- func Tips(s string) string
- func Underline(s string) string
- func Warn(s ...any)
- func Warnf(format string, s ...any)
- func Warning(s string) string
- func White(s string) string
- func WhiteB(s string) string
- func Yellow(s string) string
- func YellowB(s string) string
- type Level
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomImportant ¶
func SetCallerLevel ¶
func SetCallerLevel(level int)
SetCallerLevel 设置日志调用者查找的起始层级 level: 起始层级,通常为3,如果需要跳过更多层级可以增加此值 此函数影响所有日志输出中显示的调用者位置
func SetOutputFile ¶
func StrMapRandomColor ¶
func StrSliceRandomColor ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.