logging

package
v0.36.2 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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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