clogger

package
v0.0.0-...-194264a Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2018 License: Apache-2.0 Imports: 0 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CiaoLog

type CiaoLog interface {
	// V returns true if the given argument is less than or equal
	// to the implementation's defined verbosity level.
	V(int32) bool

	// Infof writes informational output to the log.  A newline will be
	// added to the output if one is not provided.
	Infof(string, ...interface{})

	// Warningf writes warning output to the log.  A newline will be
	// added to the output if one is not provided.
	Warningf(string, ...interface{})

	// Errorf writes error output to the log.  A newline will be
	// added to the output if one is not provided.
	Errorf(string, ...interface{})
}

CiaoLog is a logging interface to be used by other packages to log various interesting pieces of information. Rather than introduce a dependency on a given logging package, ciao-logger presents this interface that allows clients to provide their own logging type.

type CiaoNullLogger

type CiaoNullLogger struct{}

CiaoNullLogger is a do nothing implementation of CiaoLog

func (CiaoNullLogger) Errorf

func (l CiaoNullLogger) Errorf(format string, v ...interface{})

Errorf no logging done

func (CiaoNullLogger) Infof

func (l CiaoNullLogger) Infof(format string, v ...interface{})

Infof no logging done

func (CiaoNullLogger) V

func (l CiaoNullLogger) V(level int32) bool

V no message is verbose

func (CiaoNullLogger) Warningf

func (l CiaoNullLogger) Warningf(format string, v ...interface{})

Warningf no logging done

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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