Enum anira::LogLevel#

enum class anira::LogLevel#

Minimum severity of log messages that are emitted.

One level for the whole inference stack: it is applied as the runtime level of thl::Logger (tanh-lib), through which all of anira’s own output goes (tagged with anira.<component> groups), and is forwarded to the logging facilities of the enabled backends (ONNX Runtime environment severity, LiteRT environment min-logger severity, LibTorch/c10 log level). A message is emitted when its severity is at or above the configured level — and, for anira’s own messages, at or above tanh-lib’s compile-time level (Release builds compile in Error only).

Note

The TFLite backend is exempt: the prebuilt TFLite C library does not export any runtime logging control, so its (rare) log lines are unaffected.

Note

The level is process-global, like the inference thread pool. When the ContextConfigs in a process disagree, the lowest (most verbose) requested level wins — no session can silence the diagnostics another session asked for — and the mismatch is reported with a warning.

Note

Debug enables the backends’ verbose/debug output; anira itself logs at Info severity and above.

Values:

enumerator Debug#
enumerator Info#
enumerator Warning#
enumerator Error#