On 28 January 2012 00:10, Marcelo Gornstein <marce...@gmail.com> wrote:

> Hello Ivan,
>
> Thank you very much for your quick response!
>
> Is the decision of deprecating the ini files final / irrevocable?
>
>
INI files support will not be removed for the foreseeable future so you can
continue using them if you're more comfortable that way. However, some
features may not be configurable using the INI format (currently only
filters). The reason for this is that INI format is increasingly harder to
interpret as the configuration gets more complex.

There is an easy way of converting your INI configuration to PHP:
$conf = new LoggerConfiguratorDefault();
$conf->parse('config.ini');

This will return the equivalent PHP configuration array.

Now, looking through the code base, there used to be an (undocumented) way
of inserting constants in configuration params. But it seems that it was...
erm... misplaced when I rewrote the configurator for v2.2. :)

Prior to 2.2., this would have worked:
log4php.appender.default.file =
"${ROOT_APPLICATION_PATH}/runtime/log/log.log"

The constant delimited by ${ } would be resolved during configuration. I
can fix this to work for 2.3. and I would prefer doing this instead of
removing the SCANNER_RAW option.

Would this solve all your problems?

Regards
Ivan

Reply via email to