Documentation ¶
Overview ¶
Package log holds log related files
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { // Infof is used to print a info level log Infof(format string, params ...interface{}) // Tracef is used to print a trace level log Tracef(format string, params ...interface{}) // Debugf is used to print a trace level log Debugf(format string, params ...interface{}) // Errorf is used to print an error Errorf(format string, params ...interface{}) IsTracing() bool }
Logger interface used to remove the dependency of this package to the logger of the agent
func OrNullLogger ¶
OrNullLogger ensures that the provided logger is non-nil by returning a NullLogger if it is
type NullLogger ¶
type NullLogger struct{}
NullLogger is a default implementation of the Logger interface
func (NullLogger) Debugf ¶
func (l NullLogger) Debugf(format string, params ...interface{})
Debugf is used to print a trace level log
func (NullLogger) Errorf ¶
func (l NullLogger) Errorf(format string, params ...interface{})
Errorf is used to print an error
func (NullLogger) Infof ¶
func (l NullLogger) Infof(format string, params ...interface{})
Infof is used to print an info
func (NullLogger) IsTracing ¶
func (l NullLogger) IsTracing() bool
IsTracing is used to check if TraceF would actually log
func (NullLogger) Tracef ¶
func (l NullLogger) Tracef(format string, params ...interface{})
Tracef is used to print a trace level log
Click to show internal directories.
Click to hide internal directories.