Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMultiFileWriter ¶
func NewMultiFileWriter() (writer, error)
func ReadConfig ¶
Types ¶
type Level ¶
type Level uint8
func ParseLevel ¶
ParseLevel 给定描述日志等级的字符串,返回其对应的 Level。
func (Level) ColorString ¶
type Logger ¶
type Logger interface { Debug(args ...any) Debugf(format string, args ...interface{}) Info(args ...any) Infof(format string, args ...interface{}) Warn(args ...any) Warnf(format string, args ...interface{}) Error(args ...any) Errorf(format string, args ...interface{}) Panic(args ...any) Panicf(format string, args ...interface{}) With(key, value string) Logger Stop() error ChangeLevel(lvl Level) }
Click to show internal directories.
Click to hide internal directories.