logger

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	// Debugf prints a debug-level message.
	Debugf(msg string, args ...any)

	// Noticef prints a notice-level message.
	Noticef(msg string, args ...any)

	// Warningf prints a warning-level message.
	Warningf(msg string, args ...any)

	// Errorf prints a error-level message.
	Errorf(msg string, args ...any)

	// Fatalf prints a error-level message and exits.
	Fatalf(msg string, args ...any)

	// Infof prints message to stdout without any level annotations.
	Infof(msg string, args ...any)
}

All Logger methods follow the standard fmt.Printf convention.

func NewLogger

func NewLogger(verbose bool) Logger

Returns a logger suitable for Github Actions or terminal output.

func NewNoopLogger

func NewNoopLogger() Logger

NewNoopLogger returns a logger that does not log anything.

Jump to

Keyboard shortcuts

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