Back to

Package log

Latest Go to latest

The latest major version is .

Published: Jul 8, 2020 | License: LGPL-3.0 | Module:


type Log

type Log interface {
	Print(v ...interface{})
	Printf(format string, v ...interface{})
	Println(v ...interface{})

	Info(v ...interface{})
	Infof(format string, v ...interface{})
	Infoln(v ...interface{})

	Debug(v ...interface{})
	Debugf(format string, v ...interface{})
	Debugln(v ...interface{})

Log provides some common methods for outputting messages. It may be used to exchange the default log.Logger error logger with another provider.

func WithLogrus

func WithLogrus(cfg config.Log) Log

func WithStd

func WithStd(cfg config.Log) Log

WithStd creates a logger that uses the stdlib log facilities.

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