logger

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: GPL-3.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DEBUG = iota
	INFO
	WARN
	ERROR
	FATAL
	PANIC
)

Variables

This section is empty.

Functions

func New

func New(wc io.Writer) *logger

Types

type Log

type Log interface {
	SetLevel(int)

	SetDepth(int)

	Debug(...interface{})
	Debugn(...interface{})
	Debugf(string, ...interface{})

	Info(...interface{})
	Infon(...interface{})
	Infof(string, ...interface{})

	Warn(...interface{})
	Warnn(...interface{})
	Warnf(string, ...interface{})

	Error(...interface{})
	Errorn(...interface{})
	Errorf(string, ...interface{})

	Fatal(...interface{})
	Fataln(...interface{})
	Fatalf(string, ...interface{})

	Panic(...interface{})
	Panicn(...interface{})
	Panicf(string, ...interface{})
}

Jump to

Keyboard shortcuts

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