log

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// QUIET will suppress all log messages except error and above
	QUIET Level = 0
	// DEFAULT is info-level logging
	DEFAULT = 1
	// VERBOSE includes all debug logs
	VERBOSE = 2
)

Variables

This section is empty.

Functions

func InitLogLevel

func InitLogLevel(l Level)

InitLogLevel sets all registered loggers to use the verbosity indicated as command line flags

func MustGetLogger

func MustGetLogger(moduleName string) *logging.Logger

MustGetLogger returns a logger for the given package or panics

Types

type Level

type Level int

Level defines available log levels

Jump to

Keyboard shortcuts

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