logger

package
v2.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
}

Logger provides logging facilities to the library.

var Null Logger = NullLogger{}

func Writer

func Writer(w io.Writer) Logger

Writer provides a logger that outputs logging to the given writer.

type NullLogger

type NullLogger struct{}

func (NullLogger) Debugf

func (NullLogger) Debugf(format string, args ...interface{})

func (NullLogger) Errorf

func (NullLogger) Errorf(format string, args ...interface{})

func (NullLogger) Infof

func (NullLogger) Infof(format string, args ...interface{})

func (NullLogger) Warnf

func (NullLogger) Warnf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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