Skip to content

Logging

Ducktion includes a simple internal logger used to log events related to the container's operation, such as service registration and resolution, as well as errors that may occur.

You can change the log level in the configuration. The default log level is Error. Any log will be written to the Unity Debug logger.

Log Levels

The following log levels are available:

LevelDescription
ErrorLogs any error that occur. This is the recommended log level for general usage
InfoLogs all relevant events, such like configuration classes being executed. This level is useful to understanding the container's activity.
DebugLogs all events, including internal ones. This level is useful for in-depth understanding of the container's internal processes.
DisabledDisable any log output