logger

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogDebug   = 1 << 0
	LogInfo    = 1 << 1
	LogWarning = 1 << 2
	LogError   = 1 << 3
	LogFatal   = 1 << 4

	LogCode2Des = map[int]string{
		LogDebug:   "[DEBUG] ",
		LogInfo:    "[INFO] ",
		LogWarning: "[WARNING] ",
		LogError:   "[ERROR] ",
		LogFatal:   "[FATAL] ",
	}

	LogDes2Code = map[string]int{
		"debug":   LogDebug,
		"info":    LogInfo,
		"warning": LogWarning,
		"error":   LogError,
		"fatal":   LogFatal,
	}

	MySQLLogLevel = map[string]logger.LogLevel{
		"silent": logger.Silent,
		"error":  logger.Error,
		"warn":   logger.Warn,
		"info":   logger.Info,
	}
)

constant map

Functions

func Debug

func Debug(msgs ...interface{})

func Debugf

func Debugf(format string, msgs ...interface{})

func Error

func Error(msgs ...interface{})

func Errorf

func Errorf(format string, msgs ...interface{})

func Fatal

func Fatal(msgs ...interface{})

func Fatalf

func Fatalf(format string, msgs ...interface{})

func Info

func Info(msgs ...interface{})

func Infof

func Infof(format string, msgs ...interface{})

func Warning

func Warning(msgs ...interface{})

func Warningf

func Warningf(format string, msgs ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL