Documentation ¶
Overview ¶
Package log provides logging utilities for the tracer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(fmt string, a ...interface{})
Debug prints the given message if the level is LevelDebug.
func Error ¶
func Error(format string, a ...interface{})
Error reports an error. Errors get aggregated and logged periodically. The default is once per minute or once every DD_LOGGING_RATE number of seconds.
func Info ¶ added in v1.26.0
func Info(fmt string, a ...interface{})
Info prints an informational message.
Types ¶
type DiscardLogger ¶ added in v1.31.1
type DiscardLogger struct{}
DiscardLogger discards every call to Log().
func (DiscardLogger) Log ¶ added in v1.31.1
func (d DiscardLogger) Log(msg string)
Log implements ddtrace.Logger.
type RecordLogger ¶ added in v1.31.1
type RecordLogger struct {
// contains filtered or unexported fields
}
RecordLogger records every call to Log() and makes it available via Logs().
func (*RecordLogger) Log ¶ added in v1.31.1
func (r *RecordLogger) Log(msg string)
Log implements ddtrace.Logger.
func (*RecordLogger) Logs ¶ added in v1.31.1
func (r *RecordLogger) Logs() []string
Logs returns the ordered list of logs recorded by the logger.
Click to show internal directories.
Click to hide internal directories.