logger

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disable

func Disable()

Disable all logging by setting a handler that discards all messages.

func SetDebug

func SetDebug()

SetLevel sets the logging level to DEBUG on the global handler.

func SetHandler

func SetHandler(h log.Handler)

SetHandler changes the global logging 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