logger

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(format string, a ...any) error

Errorf logs the formatted error message.

func Printf

func Printf(format string, a ...any)

Printf logs the formatted message.

func SetupLogger

func SetupLogger(options ...LoggerOpt)

SetupLogger sets up the logger with the provided options.

func Warnf added in v0.4.0

func Warnf(format string, a ...any)

Warnf logs the formatted warning message.

Types

type LoggerOpt added in v0.6.1

type LoggerOpt func(*option)

LoggerOpt is a function that modifies the logger options.

func Enable

func Enable() LoggerOpt

Enable sets the enabled flag to true.

func ForTest added in v0.4.1

func ForTest() LoggerOpt

ForTest sets the forTest flag to true.

func Output

func Output(out io.Writer) LoggerOpt

Output sets the output destination of the logger.

Jump to

Keyboard shortcuts

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