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) Warningf ¶
func (l CiaoNullLogger) Warningf(format string, v ...interface{})
Warningf no logging done
Click to show internal directories.
Click to hide internal directories.