package
0.7.0
Repository: https://github.com/lxc/incus.git
Documentation: pkg.go.dev

# Functions

AddContext returns a new logger with the context added.
Debug logs a message (with optional context) at the DEBUG log level.
Debugf logs at the DEBUG log level using a standard printf format string.
Error logs a message (with optional context) at the ERROR log level.
Errorf logs at the ERROR log level using a standard printf format string.
GetStack will convert the Go stack into a string suitable for logging.
Info logs a message (with optional context) at the INFO log level.
Infof logs at the INFO log level using a standard printf format string.
InitLogger intializes a full logging instance.
Panic logs a message (with optional context) at the PANIC log level.
Panicf logs at the PANIC log level using a standard printf format string.
Pretty will attempt to convert any Go structure into a string suitable for logging.
Trace logs a message (with optional context) at the TRACE log level.
Tracef logs at the TRACE log level using a standard printf format string.
Warn logs a message (with optional context) at the WARNING log level.
Warnf logs at the WARNING log level using a standard printf format string.

# Variables

Log contains the logger used by all the logging functions.

# Interfaces

Logger is the main logging interface.

# Type aliases

Ctx is the logging context.