logging

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 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 (
	None Level = iota
	Debug
	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