log

package
v0.0.0-...-3d20527 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: Apache-2.0 Imports: 4 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, args ...interface{})

func DebugWith

func DebugWith(meta MetaFields, format string, args ...interface{})

func Error

func Error(format string, args ...interface{})

func ErrorWith

func ErrorWith(meta MetaFields, format string, args ...interface{})

func Info

func Info(format string, args ...interface{})

func InfoWith

func InfoWith(meta MetaFields, format string, args ...interface{})

func Warning

func Warning(format string, args ...interface{})

func WarningWith

func WarningWith(meta MetaFields, format string, args ...interface{})

Types

type Logger

type Logger interface {
	Debug(format string, args ...interface{})
	DebugWith(meta MetaFields, format string, args ...interface{})
	Info(format string, args ...interface{})
	InfoWith(meta MetaFields, format string, args ...interface{})
	Warning(format string, args ...interface{})
	WarningWith(meta MetaFields, format string, args ...interface{})
	Error(format string, args ...interface{})
	ErrorWith(meta MetaFields, format string, args ...interface{})

	Get(name string) Logger
}

func Build

func Build() Logger

func Get

func Get(name string) Logger

type Meta

type Meta struct {
	Key   string
	Value interface{}
}

func E

func E(err error) *Meta

func F

func F(key string, value interface{}) *Meta

type MetaFields

type MetaFields []*Meta

type NoOpLogger

type NoOpLogger struct {
}

func (*NoOpLogger) Debug

func (l *NoOpLogger) Debug(format string, args ...interface{})

func (*NoOpLogger) DebugWith

func (l *NoOpLogger) DebugWith(meta MetaFields, format string, args ...interface{})

func (*NoOpLogger) Error

func (l *NoOpLogger) Error(format string, args ...interface{})

func (*NoOpLogger) ErrorWith

func (l *NoOpLogger) ErrorWith(meta MetaFields, format string, args ...interface{})

func (*NoOpLogger) Get

func (l *NoOpLogger) Get(name string) Logger

func (*NoOpLogger) Info

func (l *NoOpLogger) Info(format string, args ...interface{})

func (*NoOpLogger) InfoWith

func (l *NoOpLogger) InfoWith(meta MetaFields, format string, args ...interface{})

func (*NoOpLogger) Warning

func (l *NoOpLogger) Warning(format string, args ...interface{})

func (*NoOpLogger) WarningWith

func (l *NoOpLogger) WarningWith(meta MetaFields, format string, args ...interface{})

Jump to

Keyboard shortcuts

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