logger

package
v0.0.0-...-a2a535d Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disable

func Disable()

Disable sets the DEBUG env var to false and makes the logger to log at info level.

func Enable

func Enable()

Enable sets the DEBUG env var to true and makes the logger to log at debug level.

func ErrorWrapper

func ErrorWrapper(err error, msg string) error

func IsEnabled

func IsEnabled() bool

IsEnabled checks whether the debug flag is set or not.

func SetLogFile

func SetLogFile(filname string) error

func SetLogLevel

func SetLogLevel(logLevel string)

SetLogLevel sets the logrus logging level

Types

This section is empty.

Jump to

Keyboard shortcuts

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