logging

package
v0.32.5 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 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 CustomFormatter

type CustomFormatter struct {
}

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

func (CustomFormatter) Format

func (formatter CustomFormatter) 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