log

package
v0.0.0-...-3ec0304 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatConsole    = "console"
	FormatJSON       = "json"
	OutputPathStdErr = "stderr"
	OutputPathStdOut = "stdout"

	InvalidLevelError = "invalid log level set"
)

Variables

View Source
var (
	ErrInvalidLevel           = fmt.Errorf(InvalidLevelError)
	ErrInvalidOutputPath      = fmt.Errorf(invalidOutputPathError + OutputPathStdOut + ", " + OutputPathStdErr)
	ErrInvalidErrorOutputPath = fmt.Errorf(invalidErrOutputPathError + OutputPathStdOut + ", " + OutputPathStdErr)
	ErrInvalidFormat          = fmt.Errorf(invalidFormatPathError + FormatJSON + ", " + FormatConsole)
)

Functions

func GetLogger

func GetLogger() *zap.Logger

func InitializeLogger

func InitializeLogger(inputConfig configuration.Logging) (*zap.Logger, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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