log

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DefaultLoggerName    = "RQ"
	DefaultLogTimeFormat = "2006-01-02 15:04:05"
	DefaultLogLevel      = "debug"
	DefaultLogOut        = "stderr"
	DefaultLogFormat     = `[%{time:` + DefaultLogTimeFormat + `}] [%{module}] [%{level}] %{message}`
)

Default TODO

Variables

View Source
var Logger *logging.Logger = logging.MustGetLogger(rootLoggerName)

Logger TODO

Functions

func ConfigLogging

func ConfigLogging(conf *viper.Viper) error

ConfigLogging TODO

func ConfigLoggingBackend

func ConfigLoggingBackend(conf *viper.Viper) error

ConfigLoggingBackend TODO

func ConfigLoggingFormat

func ConfigLoggingFormat(conf *viper.Viper) error

ConfigLoggingFormat TODO

func ConfigLoggingLevel

func ConfigLoggingLevel(conf *viper.Viper) error

ConfigLoggingLevel TODO

func SetLoggingBackend

func SetLoggingBackend(out string) error

SetLoggingBackend TODO

func SetLoggingFormat

func SetLoggingFormat(format string) error

SetLoggingFormat TODO

func SetLoggingLevel

func SetLoggingLevel(level string, debug bool) error

SetLoggingLevel TODO

Types

This section is empty.

Jump to

Keyboard shortcuts

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