dravencms / logging
DravenCMS logging
Package info
Type:dravencms-package
pkg:composer/dravencms/logging
Requires
- contributte/monolog: ^0.5.0
This package is auto-updated.
Last update: 2026-08-24 22:38:56 UTC
README
Default Monolog integration for DravenCMS applications, provided through Contributte Monolog.
Installation
composer require dravencms/logging
The bundled configuration creates a default channel with a rotating file handler:
- Log file:
%appDir%/../log/syslog.log - Retention: 30 rotated files
- Minimum level:
WARNING - Process, memory, web-request, and call-site processors
The Tracy forwarding hook is disabled by default.
Customization
Override contributte.monolog in the application configuration to add channels, change the log path or severity, or enable Tracy integration. Keep environment-specific handlers and credentials in local configuration rather than modifying the package file.
Inject a PSR-3 logger or the named Monolog channel into application services according to Contributte Monolog's DI conventions.
License
This package is licensed under the LGPL-3.0 license.