On 8.10.2011. 10:38, Florian Semm wrote:
in the old version of LoggerConfiguratorPhp it was possible to pass an
array to the configure method. In the rewrite of this class their is
explicit a file required as argument.
Is there a way to pass an array to this configurator?
It is still possible in the rewrite. Just pass an array to
Logger::configure().
The only difference is that the PHP configuration format has changed
slightly. I am in the process of writing the docs for that. In the
meantime, I have rewritten a some of the unit tests to use just such
configuration. Have a look at, e.g.:
/src/test/php/LoggerConfiguratorTest.php:66
Also, the appender docs have been updated to include a PHP config
example, as well as XML. I have uploaded the unfinished site at:
http://bezdomni.net/log4php
Hope that halps for now.
Regards,
Ivan