Documentation ¶
Index ¶
Constants ¶
View Source
const ( LogFormatLogfmt = "logfmt" LogFormatJSON = "json" )
Variables ¶
This section is empty.
Functions ¶
func NewLibbpfLogCallbacks ¶ added in v0.29.0
func NewLogger ¶
NewLogger returns a log.Logger that prints in the provided format at the provided level with a UTC timestamp and the caller of the log entry. If non empty, the debug name is also appended as a field to all log lines. Panics if the log level is not error, warn, info or debug. Log level is expected to be validated before passed to this function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.