logging

package
v0.0.0-...-6091764 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const (
	NOP uint8 = iota
	ALARM
	ERROR
	STAT
	INFO
	EVENT
	DEBUG
	UNKNOWN
	TEST
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLogger

type DefaultLogger struct {
	// contains filtered or unexported fields
}

func (*DefaultLogger) Emit

func (l *DefaultLogger) Emit(severity uint8, template string, args ...interface{})

Prints out the message to the appropriate stream.

type Logger

type Logger interface {
	Emit(severity uint8, template string, args ...interface{})
}

func NewDefaultLogger

func NewDefaultLogger() Logger

Sets required information for our default logger and returns a new instance.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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