log

package
v0.7.1-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 0 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldLogger

type FieldLogger interface {
	Logger
	WithField(name string, value interface{}) FieldLogger
}

func NewNopLogger

func NewNopLogger() FieldLogger

type Logger

type Logger interface {
	Printf(string, ...interface{})
	Println(...interface{})
}

type Loggers

type Loggers struct {
	Error FieldLogger
	Warn  FieldLogger
	Info  FieldLogger
	Debug FieldLogger
}

func (Loggers) WithField

func (l Loggers) WithField(name string, value interface{}) Loggers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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