log

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package log provides facilities for logging.

Index

Constants

View Source
const DefaultLevel = logrus.DebugLevel

DefaultLevel is the default logging level to use, when no other is specified.

Variables

This section is empty.

Functions

func CreateLogger

func CreateLogger(logLevel string) *logrus.Logger

CreateLogger will create a logrus logger with the desired log level.

func SetLogLevel

func SetLogLevel(level string)

SetLogLevel parses the string and sets the log level to that which is requested. if it fails to parse it will fall back to the default level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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