ollily / ezlogging
Simplify the usage of - Logging with Monolog
Requires
- php: >=7.4
- monolog/monolog: ^2.10
- ollily/ezkoding: ^0.2
- php-ds/php-ds: ^1.0
- psr/log: ^1.0||^2.0||^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpmd/phpmd: ^2.0
- phpstan/phpstan: ^2.1
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/phpunit: ^9.6
- psalm/plugin-phpunit: ^0.19
- rogervila/php-sonarqube-scanner: ^1.0
- squizlabs/php_codesniffer: ^3.13
- vimeo/psalm: ^5.26
Suggests
- bamarni/composer-bin-plugin: Having compatible versions
- hrodic/php-integration-testing: Integration Testing with PHPUnit
Provides
- psr/log-implementation: ^1.0||^2.0||^3.0
This package is auto-updated.
Last update: 2026-05-30 20:50:58 UTC
README
Table of ContentsDescription
Simplify the usage of
-
Logging with Monolog
Configuration
Please read the configuration.
Usage
There are several classes which can be used for your development.
Monolog
Logger
-
AbstractEasyGoingLogger - Base class for all the logger
-
ConsoleLogger - Logging to console
-
Log format:
%datetime% [%level%] %class%→%function%() - %message% %context% %extra%
-
-
CsvLogger - Writing to a file in CSV format
-
DoNothingLogger - Replace any other logger with this and logging is disabled
-
FileLogger - Writing to a file
-
PlainLogger - Sending the output "as it is" to the console (raw)
Formatter
-
Formatter/EasyGoingFormatter - Formatter for the Monolog/ConsoleLogger
-
Formatter/PlainFormatter - Formatter for the Monolog/PlainLogger
Handler
-
Handler/ConsoleHandler - Handler for the Monolog/ConsoleLogger
-
Handler/CsvHandler - Handler for the Monolog/CsvLogger
-
Handler/FileHandler - Handler for the Monolog/FileLogger
Processor
-
Processor/PaddingProcessor - Processor for the Monolog/ConsoleLogger
-
Processor/PlainProcessor - Processor for the Monolog/PlainLogger
Examples
Please read some examples.
Project Status
Please read the project status.
Additional Information
-
Composer Commands - New commands for composer
Notice
Reference
-
Monolog (c) 2025 by Oliver Glowa