logger

package
v0.0.0-...-5049426 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// LevelDebug debug level of logger
	LevelDebug = "debug"

	// LevelInfo info level of logger
	LevelInfo = "info"

	// LevelWarn warn level of logger
	LevelWarn = "warn"

	// LevelError error level of logger
	LevelError = "error"
)

Variables

This section is empty.

Functions

func AL

func AL(v ...any)

AL logs a message at alert level.

func CR

func CR(v ...any)

CR logs a message at critical level.

func D

func D(v ...any)

D logs a message at debug level.

func E

func E(v ...any)

E logs a message at error level.

func EM

func EM(v ...any)

EM logs a message at emergency level.

func GetLevel

func GetLevel() string

GetLevel return current logger output level

func I

func I(v ...any)

I logs a message at info level.

func N

func N(v ...any)

N logs a message at notice level.

func SetOutputLogger

func SetOutputLogger()

SetOutputLogger close console logger on prod mode and only remain file logger.

func W

func W(v ...any)

W logs a message at warning level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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