logging

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FatalLogger

type FatalLogger interface {
	// Fatalf always calls log.Fatalf to log and exit.
	Fatalf(format string, v ...interface{})
}

type Logger

type Logger interface {
	VerboseLogger
	FatalLogger
}

func GetLogger

func GetLogger() Logger

type VerboseLogger

type VerboseLogger interface {
	// Printf is silent if verbose logging is disabled.
	Printf(format string, v ...interface{})

	// Enable or disable verbose logging.
	SetVerboseEnabled(verboseEnabled bool)
}

Jump to

Keyboard shortcuts

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