logging

package
v0.3.31 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func LogError added in v0.3.10

func LogError(err error, message string)

LogError is a helper function that allows for errors to be logged easily

func RegisterLogger added in v0.3.10

func RegisterLogger(l *logrus.Entry)

RegisterLogger a custom logger

func UpdateConfig

func UpdateConfig(logLevel string, logFormat string, logFile string) error

UpdateConfig overrides the default logging settings. This function is meant to be used during CLI initialization to update the logger based on config file and CLI args.

Types

This section is empty.

Jump to

Keyboard shortcuts

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