Documentation
¶
Index ¶
- Constants
- func CloseLogger()
- func Debug(msg string, param ...any)
- func Error(msg string, param ...any)
- func Info(msg string, param ...any)
- func InitLogger(cfg *Config)
- func ParseLevel(level string) int
- func Raw(data []byte)
- func Stack() string
- func StackAll() string
- func Warn(msg string, param ...any)
- type Config
- type LogFlag
- type LogInfo
- type LogWriter
- type Logger
Constants ¶
View Source
const ( DEBUG = iota INFO WARN ERROR )
Variables ¶
This section is empty.
Functions ¶
func CloseLogger ¶
func CloseLogger()
func InitLogger ¶
func InitLogger(cfg *Config)
func ParseLevel ¶
Types ¶
type Config ¶
Click to show internal directories.
Click to hide internal directories.