logger

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disable added in v1.6.1

func Disable()

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

func SetDebug added in v1.6.1

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