logging

package
v0.0.0-...-40ca067 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: AGPL-3.0 Imports: 1 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 {
	//Fatal causes the application to terminate with the given error message
	Fatal(args ...interface{})
	//Fatalf causes the application to terminate with the given error message
	Fatalf(format string, args ...interface{})
	//Error logs a message at ERROR level on the default logger
	Error(args ...interface{})
	//Errorf logs a message at ERROR level on the default logger
	Errorf(format string, args ...interface{})
	//Info logs a message at INFO level on the default logger
	Info(args ...interface{})
	//Infof logs a message at INFO level on the default logger
	Infof(format string, args ...interface{})
}

Logger interface that allows abstracting away the concrete logger implementation we are using

func NewLogger

func NewLogger() Logger

NewLogger instantiates a new logger and returns it

Jump to

Keyboard shortcuts

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