Documentation ¶
Index ¶
- Constants
- Variables
- func CloseLogger()
- func Debug(msg string, param ...any)
- func Error(msg string, param ...any)
- func Info(msg string, param ...any)
- func InitLogger()
- func SetLogLevel(logLevel string)
- func Stack() string
- func StackAll() string
- func Warn(msg string, param ...any)
- type LogInfo
- type Logger
Constants ¶
View Source
const ( DEBUG = iota INFO WARN ERROR )
View Source
const ( CONSOLE = iota FILE BOTH NEITHER )
Variables ¶
View Source
var ( GREEN = string([]byte{27, 91, 51, 50, 109}) WHITE = string([]byte{27, 91, 51, 55, 109}) YELLOW = string([]byte{27, 91, 51, 51, 109}) RED = string([]byte{27, 91, 51, 49, 109}) BLUE = string([]byte{27, 91, 51, 52, 109}) MAGENTA = string([]byte{27, 91, 51, 53, 109}) CYAN = string([]byte{27, 91, 51, 54, 109}) RESET = string([]byte{27, 91, 48, 109}) ALL_COLOR = []string{GREEN, WHITE, YELLOW, RED, BLUE, MAGENTA, CYAN, RESET} )
Functions ¶
func CloseLogger ¶
func CloseLogger()
func InitLogger ¶
func InitLogger()
func SetLogLevel ¶
func SetLogLevel(logLevel string)
Types ¶
Click to show internal directories.
Click to hide internal directories.