log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 2 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 {
	Info(a ...interface{})
	Debug(a ...interface{})
	Warning(a ...interface{})
	Error(a ...interface{})

	SetLevel(level string)
	AddFields(fields map[string]interface{})
	CreateChild() Logger
}

Logger represents the logger wrapper.

func NewLogger

func NewLogger(out io.Writer) Logger

NewLogger returns new instance of the default logger.

Jump to

Keyboard shortcuts

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