Documentation ¶
Overview ¶
Package log provides a logging facility that is used by this library, and which can be configured to piggyback on another logging facility where available. If not explicitly configured, this will log messages using the Go standar library log package, filtered according to the log level set in the `DD_LOG_LEVEL` environment variable (or `ERROR` if none is set).
Custom logger intergrations are configured by calling the SetBackend function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Criticalf ¶
Errorf logs a message with format using the CRITICAL log level and returns an error containing the formatted log message.
func Errorf ¶
Errorf logs a message with format using the ERROR log level and returns an error containing the formatted log message.
func SetBackend ¶
func SetBackend(newBackend Backend)
SetBackend replaces the active log backend with the provided one. Any nil function in the new backend will silently ignore any message logged at that level.