logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: MIT Imports: 0 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 {
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warningf(format string, args ...interface{})
	Errorf(format string, args ...interface{})

	Debug(args ...interface{})
	Info(args ...interface{})
	Warning(args ...interface{})
	Error(args ...interface{})
}

Logger is an interface for logging in long-running processes like updating holidays storage

type NilLogger

type NilLogger struct{}

NilLogger is a logger doing nothing

func (*NilLogger) Debug

func (n *NilLogger) Debug(args ...interface{})

func (*NilLogger) Debugf

func (n *NilLogger) Debugf(format string, args ...interface{})

func (*NilLogger) Error

func (n *NilLogger) Error(args ...interface{})

func (*NilLogger) Errorf

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

func (*NilLogger) Info

func (n *NilLogger) Info(args ...interface{})

func (*NilLogger) Infof

func (n *NilLogger) Infof(format string, args ...interface{})

func (*NilLogger) Warning

func (n *NilLogger) Warning(args ...interface{})

func (*NilLogger) Warningf

func (n *NilLogger) Warningf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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