Projects / Analog PHP

Analog PHP

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
Licenses
Operating Systems
Implementation
Translations

Recent releases

  •  12 Jan 2012 18:30

    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.

    •  09 Jan 2012 14:41

      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.

      Screenshot

      Project Spotlight

      OpenStack4j

      A Fluent OpenStack client API for Java.

      Screenshot

      Project Spotlight

      TurnKey TWiki Appliance

      A TWiki appliance that is easy to use and lightweight.