Documentation ¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func SetLogger(l Logger)
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type Logger
- type SilentLogger
- func (l SilentLogger) Debug(args ...interface{})
- func (l SilentLogger) Debugf(format string, args ...interface{})
- func (l SilentLogger) Error(args ...interface{})
- func (l SilentLogger) Errorf(format string, args ...interface{})
- func (l SilentLogger) Info(args ...interface{})
- func (l SilentLogger) Infof(format string, args ...interface{})
- func (l SilentLogger) Warn(args ...interface{})
- func (l SilentLogger) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface { Errorf(format string, args ...interface{}) Error(args ...interface{}) Warnf(format string, args ...interface{}) Warn(args ...interface{}) Debugf(format string, args ...interface{}) Debug(args ...interface{}) Infof(format string, args ...interface{}) Info(args ...interface{}) }
Logger is used by witness library code to print out relevant information at runtime.
type SilentLogger ¶
type SilentLogger struct{}
SilentLogger is an implementation of the Logger interface that suppresses all logging output. This is the default logger when using Witness as a library, so that we don't interfere with the caller's stdout/stderr. Callers should supply their own Logger to capture Witness logging if desired.
func (SilentLogger) Debug ¶
func (l SilentLogger) Debug(args ...interface{})
func (SilentLogger) Debugf ¶
func (l SilentLogger) Debugf(format string, args ...interface{})
func (SilentLogger) Error ¶
func (l SilentLogger) Error(args ...interface{})
func (SilentLogger) Errorf ¶
func (l SilentLogger) Errorf(format string, args ...interface{})
func (SilentLogger) Info ¶
func (l SilentLogger) Info(args ...interface{})
func (SilentLogger) Infof ¶
func (l SilentLogger) Infof(format string, args ...interface{})
func (SilentLogger) Warn ¶
func (l SilentLogger) Warn(args ...interface{})
func (SilentLogger) Warnf ¶
func (l SilentLogger) Warnf(format string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.