Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicT ¶
type BasicT interface {
// Tracef formats message according to format specifier
// and writes to log with level Trace.
Tracef(format string, params ...interface{})
// Debugf formats message according to format specifier
// and writes to log with level Debug.
Debugf(format string, params ...interface{})
// Infof formats message according to format specifier
// and writes to log with level Info.
Infof(format string, params ...interface{})
// Warnf formats message according to format specifier
// and writes to log with level Warn.
Warnf(format string, params ...interface{}) error
// Errorf formats message according to format specifier
// and writes to log with level Error.
Errorf(format string, params ...interface{}) error
// Criticalf formats message according to format specifier
// and writes to log with level Critical.
Criticalf(format string, params ...interface{}) error
// Trace formats message using the default formats for its operands
// and writes to log with level Trace.
Trace(v ...interface{})
// Debug formats message using the default formats for its operands
// and writes to log with level Debug.
Debug(v ...interface{})
// Info formats message using the default formats for its operands
// and writes to log with level Info.
Info(v ...interface{})
// Warn formats message using the default formats for its operands
// and writes to log with level Warn.
Warn(v ...interface{}) error
// Error formats message using the default formats for its operands
// and writes to log with level Error.
Error(v ...interface{}) error
// Critical formats message using the default formats for its operands
// and writes to log with level Critical.
Critical(v ...interface{}) error
// Flush flushes all the messages in the logger.
Flush()
// Close flushes all the messages in the logger and closes it. The logger cannot be used after this operation.
Close()
// Closed checks if logger is closed
Closed() bool
}
BasicT represents structs capable of logging messages. This interface matches seelog.LoggerInterface.
type T ¶
type T interface {
BasicT
telemetrylog.TelemetryLog
Log(i ...interface{})
WithContext(context ...string) (contextLogger T)
WithTelemetryNamespace(namespace string) (contextLogger T)
WriteEvent(eventType string, agentVersion string, event string)
}
T represents structs capable of logging messages, and context management.
Click to show internal directories.
Click to hide internal directories.