log

package
v4.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: MIT Imports: 2 Imported by: 245

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(args ...any)

Fatal writes a log entry. It uses Logger if not nil, otherwise it uses the default log.Logger.

func Fatalf

func Fatalf(format string, args ...any)

Fatalf writes a log entry. It uses Logger if not nil, otherwise it uses the default log.Logger.

func Infof

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

Infof writes a log entry.

func Print

func Print(args ...any)

Print writes a log entry. It uses Logger if not nil, otherwise it uses the default log.Logger.

func Printf

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

Printf writes a log entry. It uses Logger if not nil, otherwise it uses the default log.Logger.

func Println

func Println(args ...any)

Println writes a log entry. It uses Logger if not nil, otherwise it uses the default log.Logger.

func Warnf

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

Warnf writes a log entry.

Types

type StdLogger

type StdLogger interface {
	Fatal(args ...any)
	Fatalln(args ...any)
	Fatalf(format string, args ...any)
	Print(args ...any)
	Println(args ...any)
	Printf(format string, args ...any)
}

StdLogger interface for Standard Logger.

var Logger StdLogger = log.New(os.Stderr, "", log.LstdFlags)

Logger is an optional custom logger.

Jump to

Keyboard shortcuts

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