aimeos/ai-monolog package is a Monolog adapter tailored for Aimeos e-commerce solutions, enabling structured logging for web shops built on Laravel/PHP. It bridges Aimeos’ logging needs with Monolog’s flexibility (handlers, formatters, context).config/logging.php or Aimeos’ configuration files (e.g., config/ai.php), reducing invasive changes.aimeos/aimeos-laravel).level or bubble flags).Monolog\Handler\SyslogHandler) are configured to redact sensitive data.aimeos/aimeos-laravel bundle). For vanilla Laravel, the value is limited unless Aimeos is a core dependency.laravel-logger, spatie/laravel-logging packages) and observability stacks (e.g., Sentry, Datadog).config/logging.php, custom Monolog handlers).composer require aimeos/ai-monolog
config/logging.php:
'channels' => [
'aimeos' => [
'driver' => 'custom',
'via' => \Aimeos\AI\Monolog\Processor::class,
'with' => ['context' => true], // Attach Aimeos context
],
],
single for files, stack for multi-channel):
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['aimeos', 'single'], // Include existing channels
],
],
ai.order.id, ai.customer.id).aimeos/aimeos-laravel (not standalone Aimeos). Conflicts may arise with custom Aimeos setups.Monolog\Handler\ElasticsearchHandler) before routing Aimeos logs to it.debug, error) can be adjusted via config/logging.php.ai.*) may need updates if Aimeos schema evolves.ai.order.status = "failed").php artisan log:clear and tail -f storage/logs/laravel.log.Monolog\Handler\AsyncHandler).Monolog\Handler\FingersCrossedHandler with a database buffer).FingersCrossedHandler as a fallback.debug level enabled.How can I help you explore Laravel packages today?