logging

package
v0.37.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: GPL-2.0, GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package logging provides custom logging and activity indication

Index

Constants

This section is empty.

Variables

View Source
var BuiltInPipeLogLevel = logrus.ErrorLevel

BuiltInPipeLogLevel is the level at which built-in pipes will be logged

View Source
var UserPipeLogLevel = logrus.InfoLevel

UserPipeLogLevel is the level at which user-defined pipes will be logged

Functions

func SetUpLogs

func SetUpLogs(log *logrus.Logger, verbosity string, out io.Writer) error

SetUpLogs configures the log levels based on the desired verbosity

Types

type LogFormatter added in v0.32.28

type LogFormatter struct {
}

LogFormatter prints log entries in a format suitable for output to the console

func (LogFormatter) Format added in v0.32.28

func (formatter LogFormatter) Format(entry *logrus.Entry) ([]byte, error)

Format turns a log entry into a string

Directories

Path Synopsis
Package fields provides custom log entry fields
Package fields provides custom log entry fields

Jump to

Keyboard shortcuts

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