logger

package
v0.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BackendLog = logs.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) *logs.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 Kasparov.

Types

This section is empty.

Jump to

Keyboard shortcuts

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