iceoryx2-loggers 0.8.1

iceoryx2: swappable logger implementations
Documentation

Concrete logger backend implementations for iceoryx2.

This crate provides logger implementations that can be registered with iceoryx2_log using iceoryx2_log::set_logger(). Each logger is feature-gated, allowing users to include only what they need.

Architecture

The iceoryx2 logging system is split into two crates:

  • iceoryx2_log: The frontend providing the logging API and macros
  • iceoryx2_loggers: This crate, providing selectable logger backends

This separation keeps the logging API lightweight and platform-agnostic while allowing flexible backend selection at runtime.

See iceoryx2_log for usage examples and the complete logging API.

Feature Flags

Exactly one of these three features must be selected according to your platform:

  • std - Build for platforms that have std support
  • posix - Build for platforms that have a POSIX abastraction, but no std support
  • bare_metal - Build for bare metal platforms

Optionally, the default logger can also be configured. If none are configured, the null logger is used and all logs are discarded:

  • buffer - output log messages to a buffer
  • console - output log messages to the console
  • file - output log messages to the file
  • log - utilize the log crate to output log messages
  • tracing - utilize the tracing crate to output log messages