logging

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLogLevel = logrus.InfoLevel

Functions

func Init

func Init(logFileName string) *logrus.Logger

Init will initialize the Logrus system, which per default sets up logging to console and to file at the same time. Features are file rotation, fixed colors on Windows etc. Init is a global initialization, since Logrus and the logging systems are also globally available singletons. This global instance of logrus.Logger is returned, so that if needed, it can be still used for dependency injection. Still, using logrus.Info() and other methods directly is not evil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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