package module
Version: v1.0.0 Latest Latest

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

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


Go Logging


gitlab.com/go-utils/logging provides common logging interfaces, polyfilling, and a fan-out logger.




This section is empty.


This section is empty.


This section is empty.


type DepthLogger

type DepthLogger interface {
	ErrorDepth(depth int, v ...interface{})
	FatalDepth(depth int, v ...interface{})
	InfoDepth(depth int, v ...interface{})
	WarningDepth(depth int, v ...interface{})

type FatalLogger

type FatalLogger interface {
	Fatal(v ...interface{})

type FlagsLogger

type FlagsLogger interface {
	SetFlags(flag int)

type FormatLogger

type FormatLogger interface {
	Errorf(format string, v ...interface{})
	Fatalf(format string, v ...interface{})
	Infof(format string, v ...interface{})
	Warningf(format string, v ...interface{})

type LineLogger

type LineLogger interface {
	Errorln(v ...interface{})
	Fatalln(v ...interface{})
	Infoln(v ...interface{})
	Warningln(v ...interface{})

type Logger

func Polyfill

func Polyfill(l SimpleLogger) Logger

type MultiLogger

type MultiLogger []Logger

func All

func All(l ...SimpleLogger) MultiLogger

func (MultiLogger) Error

func (l MultiLogger) Error(v ...interface{})

func (MultiLogger) ErrorDepth

func (l MultiLogger) ErrorDepth(d int, v ...interface{})

func (MultiLogger) Errorf

func (l MultiLogger) Errorf(f string, v ...interface{})

func (MultiLogger) Errorln

func (l MultiLogger) Errorln(v ...interface{})

func (MultiLogger) Fatal

func (l MultiLogger) Fatal(v ...interface{})

func (MultiLogger) FatalDepth

func (l MultiLogger) FatalDepth(d int, v ...interface{})

func (MultiLogger) Fatalf

func (l MultiLogger) Fatalf(f string, v ...interface{})

func (MultiLogger) Fatalln

func (l MultiLogger) Fatalln(v ...interface{})

func (MultiLogger) Info

func (l MultiLogger) Info(v ...interface{})

func (MultiLogger) InfoDepth

func (l MultiLogger) InfoDepth(d int, v ...interface{})

func (MultiLogger) Infof

func (l MultiLogger) Infof(f string, v ...interface{})

func (MultiLogger) Infoln

func (l MultiLogger) Infoln(v ...interface{})

func (MultiLogger) SetFlags

func (l MultiLogger) SetFlags(flag int)

func (MultiLogger) Warning

func (l MultiLogger) Warning(v ...interface{})

func (MultiLogger) WarningDepth

func (l MultiLogger) WarningDepth(d int, v ...interface{})

func (MultiLogger) Warningf

func (l MultiLogger) Warningf(f string, v ...interface{})

func (MultiLogger) Warningln

func (l MultiLogger) Warningln(v ...interface{})

type SimpleLogger

type SimpleLogger interface {
	Error(v ...interface{})
	Info(v ...interface{})
	Warning(v ...interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL