logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 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 {
	Error(message string)
	Warn(message string)
	Info(message string)
	Debug(message string)
}

Logger is an interface for logger

type NilLogger

type NilLogger struct{}

NilLogger is a logger stub

func (*NilLogger) Debug

func (l *NilLogger) Debug(message string)

Debug logs message as a debug

func (*NilLogger) Error

func (l *NilLogger) Error(message string)

Error logs message as an error

func (*NilLogger) Info

func (l *NilLogger) Info(message string)

Info logs message as an info

func (*NilLogger) Warn

func (l *NilLogger) Warn(message string)

Warn logs message as a warning

Jump to

Keyboard shortcuts

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