logger

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetHandler

func SetHandler(h log.Handler)

SetHandler changes the global logging handler.

func SetLevel

func SetLevel(l log.Level)

SetLevel sets the logging level on the global handler.

Types

type Logger

type Logger log.Logger

Logger is for logging messages from inside of the program in various logging levels.

func New

func New(name string) Logger

New returns a new Logger with a name. Log messages are prefixed with this name by the default Handler.

Jump to

Keyboard shortcuts

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