log

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(f string, args ...any)

Errorf logs an error using format.

func Errorln

func Errorln(a any)

Errorln logs an error line.

func Infof

func Infof(f string, args ...any)

Infof logs an information using format.

func Infoln

func Infoln(a any)

Infoln logs an information line.

func Init

func Init(out, eOut io.Writer)

Init initializes a new logger with the given out and eOut io.Writer. If no out is provided the logger behaves as NoOp. The initialized instance is a singleton.

If one of the logging methods is called, and the logger hasn't been initialized yet, a new logger will be initialized with a noOp out.

func Reset

func Reset()

Reset removes the current log instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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