log

package
v0.0.0-...-49e170d Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LevelError specifies the log level for error logging
	LevelError = "error"
	// LevelWarning specifies the log level for warning logging
	LevelWarning = "warn"
	// LevelDebug specifies the log level for debug logging
	LevelDebug = "debug"
)

Variables

This section is empty.

Functions

func Error

func Error(description string, err error, logger *logrus.Logger)

Error is a helper function which logs an error message with the specified logger

func Get

func Get(level string) *logrus.Logger

Get returns a pointer to a logger with the specified level

Types

This section is empty.

Jump to

Keyboard shortcuts

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