Back to godoc.org

Package log

v0.0.0-...-3d20527
Latest Go to latest

The highest tagged major version is .

Published: Mar 6, 2019 | License: Apache-2.0 | Module: github.com/bivas/rivi

Index

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{})

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{})

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier