logging

package
Version: v2.0.437+incompatible Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: AGPL-3.0 Imports: 4 Imported by: 37

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Discard = log.New(ioutil.Discard, "", 0)

Discard is the discard logger.

View Source
var Logger = NewStdErr()

Logger is the logger we use.

Functions

func LogAction

func LogAction(context string, action string)

LogAction logs The action with a tag.

func LogError

func LogError(context string, action string, err error)

LogError logs the error as a string.

func LogTarget

func LogTarget(context, action string, target interface{})

LogTarget logs The action with a tag.

Types

type Logging

type Logging interface {
	config.Provider

	// Printf logs a formatted log line.
	Printf(format string, v ...interface{})
}

Logging represents a logging contract.

func NewStdErr

func NewStdErr() Logging

NewStdErr creates a new default stderr logger.

Source Files

Jump to

Keyboard shortcuts

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