Download the PHP package ehough/epilog without Composer
On this page you can find all versions of the php package ehough/epilog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ehough/epilog
More information about ehough/epilog
Files in ehough/epilog
Package epilog
Short Description Fork of seldaek/monolog compatible with PHP 5.2+
License MIT
Homepage https://github.com/ehough/epilog
Informations about the package epilog
epilog
This library is no longer maintained. Fork of monolog compatible with PHP 5.2+.
Motivation
monolog is a fantastic logging library, but it's only compatible with PHP 5.3+. While 97% of PHP servers run PHP 5.2 or higher, 32% of all servers are still running PHP 5.2 or lower (source). It would be a shame to exempt this library from nearly a third of the world's servers just because of a few version incompatibilities.
Once PHP 5.3+ adoption levels near closer to 100%, this library will be retired.
How to use
Differences from monolog
The primary difference is naming conventions of monolog's classes. Instead of the \Monolog
namespace
(and sub-namespaces), instead prefix the class names with ehough_epilog
and follow the PEAR
naming convention.
A few examples of class naming conversions:
\Monolog\Logger -----> ehough_epilog_Logger
\Monolog\Handler\StreamHandler -----> ehough_epilog_handler_StreamHandler
\Monolog\Processor\MemoryProcessor -----> ehough_epilog_processor_MemoryProcessor
Other "gotchas" when using epilog instead of monolog:
- The Gelf handler can only be used with PHP 5.3+
- The DoctrineCouchDBHandler can only be used with PHP 5.3+
- The RedisHandler can only be used with PHP 5.3+
LoggerFactory
epilog also adds a handy class for building ehough_epilog_Logger
instances: ehough_epilog_LoggerFactory
. You can use this factory to perform one-liner instantiations:
Any loggers built this way will share the same stack of handlers and processors, thereby reducing unnecessary memory overhead.
Releases and Versioning
Releases are synchronized with the upstream monolog repository. e.g. ehough/epilog 1.6.0
has merged the code
from Seldaek/monolog 1.6.0
.