debug

package
v0.0.0-...-45d6836 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 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 LogLevel

type LogLevel int

LogLevel defines the level of logging of the aplication

const (
	//ErrorLevel enable only errors logs
	ErrorLevel LogLevel = 0
	//WarningLevel enable only errors and warnings
	WarningLevel LogLevel = 1
	//DebugLevel enable debug,warning and errors logs
	DebugLevel LogLevel = 2
)

type Logger

type Logger interface {
	Warning() *log.Logger
	Error() *log.Logger
	Debug() *log.Logger
}

Logger is the interface used for logging

func NewLogger

func NewLogger(level LogLevel) Logger

NewLogger return a new usable logger

Jump to

Keyboard shortcuts

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