Documentation ¶
Index ¶
- func Debugf(format string, v ...interface{})
- func Donef(format string, v ...interface{})
- func Errorf(format string, v ...interface{})
- func Infof(format string, v ...interface{})
- func Printf(format string, v ...interface{})
- func RErrorf(stepID string, tag string, data map[string]interface{}, format string, ...)
- func RInfof(stepID string, tag string, data map[string]interface{}, format string, ...)
- func RWarnf(stepID string, tag string, data map[string]interface{}, format string, ...)
- func SetAnalyticsServerURL(url string)
- func SetEnableDebugLog(enable bool)
- func SetOutWriter(writer io.Writer)
- func SetTimestampLayout(layout string)
- func Successf(format string, v ...interface{})
- func TDebugf(format string, v ...interface{})
- func TDonef(format string, v ...interface{})
- func TErrorf(format string, v ...interface{})
- func TInfof(format string, v ...interface{})
- func TPrintf(format string, v ...interface{})
- func TSuccessf(format string, v ...interface{})
- func TWarnf(format string, v ...interface{})
- func Warnf(format string, v ...interface{})
- type DefaultLogger
- func (dl DefaultLogger) Debugf(format string, v ...interface{})
- func (dl DefaultLogger) Donef(format string, v ...interface{})
- func (dl DefaultLogger) Errorf(format string, v ...interface{})
- func (dl DefaultLogger) Infof(format string, v ...interface{})
- func (dl DefaultLogger) Printf(format string, v ...interface{})
- func (dl DefaultLogger) Successf(format string, v ...interface{})
- func (dl DefaultLogger) Warnf(format string, v ...interface{})
- type DummyLogger
- func (dl DummyLogger) Debugf(format string, v ...interface{})
- func (dl DummyLogger) Donef(format string, v ...interface{})
- func (dl DummyLogger) Errorf(format string, v ...interface{})
- func (dl DummyLogger) Infof(format string, v ...interface{})
- func (dl DummyLogger) Printf(format string, v ...interface{})
- func (dl DummyLogger) Successf(format string, v ...interface{})
- func (dl DummyLogger) Warnf(format string, v ...interface{})
- type Entry
- type Formatable
- type JSONLoger
- type Logger
- type RawLogger
- type Severity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RErrorf ¶
func RErrorf(stepID string, tag string, data map[string]interface{}, format string, v ...interface{})
RErrorf ...
func RInfof ¶
func RInfof(stepID string, tag string, data map[string]interface{}, format string, v ...interface{})
RInfof ...
func RWarnf ¶
func RWarnf(stepID string, tag string, data map[string]interface{}, format string, v ...interface{})
RWarnf ...
func SetAnalyticsServerURL ¶
func SetAnalyticsServerURL(url string)
SetAnalyticsServerURL updates the the analytics server collecting the logs. It is intended for use during tests. Warning: current implementation is not thread safe, do not call the function during runtime.
Types ¶
type DefaultLogger ¶
type DefaultLogger struct {
// contains filtered or unexported fields
}
DefaultLogger ...
func NewDefaultLogger ¶
func NewDefaultLogger(withTimestamp bool) DefaultLogger
NewDefaultLogger ...
func (DefaultLogger) Debugf ¶
func (dl DefaultLogger) Debugf(format string, v ...interface{})
Debugf ...
func (DefaultLogger) Donef ¶
func (dl DefaultLogger) Donef(format string, v ...interface{})
Donef ...
func (DefaultLogger) Errorf ¶
func (dl DefaultLogger) Errorf(format string, v ...interface{})
Errorf ...
func (DefaultLogger) Infof ¶
func (dl DefaultLogger) Infof(format string, v ...interface{})
Infof ...
func (DefaultLogger) Printf ¶
func (dl DefaultLogger) Printf(format string, v ...interface{})
Printf ...
func (DefaultLogger) Successf ¶
func (dl DefaultLogger) Successf(format string, v ...interface{})
Successf ...
func (DefaultLogger) Warnf ¶
func (dl DefaultLogger) Warnf(format string, v ...interface{})
Warnf ...
type DummyLogger ¶
type DummyLogger struct{}
DummyLogger ...
func (DummyLogger) Debugf ¶
func (dl DummyLogger) Debugf(format string, v ...interface{})
Debugf ...
func (DummyLogger) Errorf ¶
func (dl DummyLogger) Errorf(format string, v ...interface{})
Errorf ...
func (DummyLogger) Printf ¶
func (dl DummyLogger) Printf(format string, v ...interface{})
Printf ...
func (DummyLogger) Successf ¶
func (dl DummyLogger) Successf(format string, v ...interface{})
Successf ...
type Entry ¶
type Entry struct { LogLevel string `json:"log_level"` Message string `json:"message"` Data map[string]interface{} `json:"data"` }
Entry represents a line in a log
Click to show internal directories.
Click to hide internal directories.