logging

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Log is the main application logger
	Log = log.New()
)

Functions

func InitLogging

func InitLogging(verbose bool)

Types

type Formatter

type Formatter struct{}

Formatter formats a log entry in a human readable way

func (*Formatter) Format

func (f *Formatter) Format(entry *log.Entry) ([]byte, error)

Format implements the log.Formatter interface

type LogRepresenter

type LogRepresenter interface {
	Repr() string
}

LogRepresenter is an interface for objects that can format themselves for logging

Jump to

Keyboard shortcuts

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