logging

package module
v0.0.0-...-9ac9add Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2018 License: MIT Imports: 5 Imported by: 41

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Name    string
	Trace   *log.Logger
	Info    *log.Logger
	Warning *log.Logger
	Error   *log.Logger
	// contains filtered or unexported fields
}

func GetLogger

func GetLogger(name string) Logger

func New

func New(
	name string,
	traceHandle io.Writer,
	infoHandle io.Writer,
	warningHandle io.Writer,
	errorHandle io.Writer) Logger

func (Logger) GetLevel

func (logger Logger) GetLevel() LoggingLevel

func (Logger) SetLevel

func (logger Logger) SetLevel(level LoggingLevel) Logger

type LoggingLevel

type LoggingLevel int
const (
	TRACE LoggingLevel = iota
	INFO
	WARNING
	ERROR
	OFF
)

func (LoggingLevel) String

func (i LoggingLevel) String() string

Jump to

Keyboard shortcuts

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