Help us shape the future of Go! Take the 2026 Go Developer Survey

log

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: BSD-3-Clause Imports: 2 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(format string, args ...interface{})

Errorf logs an error message.

func Fatalf

func Fatalf(format string, args ...interface{})

Fatalf logs a fatal message and immediately exits the application with os.Exit (which is expected to be called by the DefaultLogger.Fatalf).

func Warnf

func Warnf(format string, args ...interface{})

Warnf logs an warning message.

Types

type Logger

type Logger interface {
	// Warnf logs an warning message.
	Warnf(format string, args ...interface{})

	// Errorf logs an error message.
	Errorf(format string, args ...interface{})

	// Fatalf logs a fatal message and immediately exits the application
	// with os.Exit.
	Fatalf(format string, args ...interface{})
}

Logger describes a logger to be used in fiano.

var DefaultLogger Logger

DefaultLogger is the logger used by default everywhere within fiano.

Jump to

Keyboard shortcuts

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