logger

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 2 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 struct {
	// contains filtered or unexported fields
}

Logger is a logger abstraction meant to not be tied to an specific implementation

func Log

func Log() *Logger

Log returns a global logger instance

func (*Logger) Debug

func (l *Logger) Debug(args ...interface{})

Debug logs a message in debug level

func (*Logger) Debugf

func (l *Logger) Debugf(template string, args ...interface{})

Debugf logs a formatted message in debug level

func (*Logger) Error

func (l *Logger) Error(args ...interface{})

Error logs a message in error level

func (*Logger) Errorf

func (l *Logger) Errorf(template string, args ...interface{})

Errorf logs a formatted message in error level

func (*Logger) Info

func (l *Logger) Info(args ...interface{})

Info logs a message in info level

func (*Logger) Infof

func (l *Logger) Infof(template string, args ...interface{})

Infof logs a formatted message in info level

func (*Logger) Warn

func (l *Logger) Warn(args ...interface{})

Warn logs a message in warn level

func (*Logger) Warnf

func (l *Logger) Warnf(template string, args ...interface{})

Warnf logs a formatted message in warn level

Jump to

Keyboard shortcuts

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