log

package
v0.0.0-...-ffefe67 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger()

InitLogger will initialize the default logger instance.

func NewLogrusLogger

func NewLogrusLogger(logLevel string) *logrus.Logger

NewLogrusLogger will generate a new logrus logger instance

func SetLevel

func SetLevel(loglevel string)

SetLevel will set the logging level of the default logger at runtime.

Types

type Level

type Level string
const (
	LevelTrace Level = "trace"
	LevelDebug Level = "debug"
	LevelInfo  Level = "info"
	LevelWarn  Level = "warn"
	LevelError Level = "error"
)

Jump to

Keyboard shortcuts

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