logger

package module
v0.0.0-...-5f96780 Latest Latest
Warning

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

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

README

logger

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CfgConsoleAndFileLogger

func CfgConsoleAndFileLogger(debugMode bool, logDir, name string, showPath bool)

TODO: export more file configs CfgConsoleAndFileLogger config for both console and file logs cfg donot support concurrent calls (as any package should init cfg at startup once)

func CfgConsoleLogger

func CfgConsoleLogger(debugMode bool, showPath bool)

CfgConsoleLogger config for console logs cfg donot support concurrent calls (as any package should init cfg at startup once)

func Debug

func Debug(f interface{}, v ...interface{})

Debug logs a message at debug level.

func Error

func Error(f interface{}, v ...interface{})

Error logs a message at error level.

func Fatal

func Fatal(f interface{}, v ...interface{})

Fatal logs a message at emergency level and exit.

func Info

func Info(f interface{}, v ...interface{})

Info logs a message at info level.

func IsDebugMode

func IsDebugMode() bool

IsDebugMode check DebugLevel enabled

func Panic

func Panic(f interface{}, v ...interface{})

Panic logs a message at emergency level and exit.

func Warn

func Warn(f interface{}, v ...interface{})

Warn 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