2010-03-19 00:39:09 | Author:

When configuring log4php 2.0, there are four configurators one can choose from:

* INI file (.properties)
* PHP array
* PHP configuration class
* XML file

I looked at the INI file and PHP array options.

For a simple configuration – four appenders (two echo appenders, two file appenders) that are used by two loggers – initializing both loggers (Logger::getLogger(‘…’)) took
* INI file – 17..25ms
* PHP array – 10..11ms

* in both cases, 7..9ms of that time were spent loading 19 classes. wow.


Note: these times were recorded using Xdebug – which slows everything down a lot, I guess

Tags: ,
Category: blah
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply