log

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Error(msg string)

	Debugf(string, ...interface{})

	Infof(string, ...interface{})

	Warnf(string, ...interface{})

	Errorf(string, ...interface{})

	DPanicf(string, ...interface{})

	Panicf(string, ...interface{})

	Fatalf(string, ...interface{})

	Debugc(context.Context, string, ...interface{})

	Infoc(context.Context, string, ...interface{})

	Warnc(context.Context, string, ...interface{})

	Errorc(context.Context, string, ...interface{})

	DPanicc(context.Context, string, ...interface{})

	Panicc(context.Context, string, ...interface{})

	Fatalc(context.Context, string, ...interface{})
}
var Log Logger

func NewLogger

func NewLogger(options ...Option) Logger

func NewNullLogger

func NewNullLogger() Logger

type LoggerOptions

type LoggerOptions struct{}

func (LoggerOptions) WithDebug

func (LoggerOptions) WithDebug(debug bool) Option

type Option

type Option func(c *logger)

Jump to

Keyboard shortcuts

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