Statifier.Logging.ElixirLoggerAdapter (statifier v1.9.0)
View SourceLogging adapter that integrates with Elixir's Logger.
This adapter sends log messages to Elixir's Logger system, making them available to the standard Elixir logging infrastructure including console output, file logging, and external logging services.
Configuration
The adapter can be configured with a custom logger module, allowing for flexibility in testing or custom logging setups.
Examples
# Default configuration (uses Elixir's Logger)
adapter = %Statifier.Logging.ElixirLoggerAdapter{}
# Custom logger module
adapter = %Statifier.Logging.ElixirLoggerAdapter{
logger_module: MyCustomLogger
}
Summary
Types
@type t() :: %Statifier.Logging.ElixirLoggerAdapter{logger_module: module()}