log

package
v0.9.2-0...-36b1380 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CfgLogFormatText logging as text
	CfgLogFormatText = "text"

	// CfgLogFormatJSON as JSON
	CfgLogFormatJSON = "json"
)

Variables

This section is empty.

Functions

func ConfigureLogger

func ConfigureLogger(logLevel, logFormat string, logTimestamp bool)

ConfigureLogger applies configuration to the global logger

func Log

func Log() *logrus.Logger

Log returns the global logger

func PrefixedLog

func PrefixedLog(prefix string) *logrus.Entry

PrefixedLog return the global logger with prefix

Types

This section is empty.

Jump to

Keyboard shortcuts

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