logging

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func func(Level, string, ...interface{})

Func is a function that can be used for logging.

func Stdout

func Stdout() Func

Stdout returns a logging function that prints log messages on standard output.

func Test

func Test(t *testing.T) Func

Test returns a logging function that forwards messages to the test logger.

type Level

type Level int

Level defines the logging level.

const (
	Debug Level = iota
	Info
	Warn
	Error
)

Available logging levels.

func (Level) String

func (l Level) String() string

Jump to

Keyboard shortcuts

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