logger

package
v0.0.0-...-fa2bc5f Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BackendLog = logger.NewBackend()

BackendLog is the logging backend used to create all subsystem loggers.

Functions

func InitLog

func InitLog(logFile, errLogFile string)

InitLog attaches log file and error log file to the backend log.

func Logger

func Logger(subsystemTag string) *logger.Logger

Logger returns a new logger for a particular subsystem that writes to BackendLog, and add it to a slice so it will be possible to access it later and change its log level

func SetLogLevels

func SetLogLevels(level string) error

SetLogLevels sets the logging level for all of the subsystems in the server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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