Analog PHP is a short and simple logging package for PHP 5.3+ based around the idea of using closures for configurability and extensibility. It functions as a static class, but you can completely control the handling of log messages through closures (aka anonymous functions), and it also comes with a dozen pre-written handlers. It is well-documented, with examples for each type of log handler, and ultra-concise. The core is literally only 43 lines of clear, non-obfuscated code, and the whole is only a fraction of the size of comparable packages (for example, 293 total lines vs 1021 for Monolog).
| Tags | PHP5.3 Logging Logger |
|---|---|
| Licenses | MIT/X |
| Operating Systems | Cross-platform |
| Implementation | PHP 5.3 + |
| Translations | English |
Recent releases


Release Notes: This release adds optional PSR-0 support, adds automated PHPUnit configuration, and adds buffered output to the File, Stderr, and Variable handlers. It speeds up the non-PSR-0 mode via the class_alias() PHP function, and improves the docs and examples. Analog is now also available through the Composer/Packagist.org package manager.


Release Notes: This is the first release, which includes the core logger class, a dozen pre-built handlers including FirePHP, file logging, email, MongoDB, and others, PSR-0 compliance, and example code for each handler.