logging-log4php-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Habunek (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4PHP-114) Order of params in configuration is significant
Date Sun, 10 Jul 2011 08:54:00 GMT

    [ https://issues.apache.org/jira/browse/LOG4PHP-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13062704#comment-13062704

Ivan Habunek commented on LOG4PHP-114:

Hi, Olivier,

Thanks for your detailed input. I agree with your assesment.

The configurators have not been revised since PHP4 days, and they don't use a lot of modern
language features (such as foreach). We are just now pushing version 2.1 (any day now, hopefully)
and the plan is to rewrite the configurators completely for 2.2.

Also, we are trying to move away from INI config files. They are messy and hard to document.
XML files, although more verbose, can be pecisely defined and documented using XSD or DTD.

Concerning the false vs. "false" issue, this probably happens because parse_ini_file() tries
to convert everything to a string. TRUE becomes "1" and FALSE becomes an empty string. Horrible,
isn't it? There is an INI_SCANNER_RAW option which prevents it from parsing option values.
This would probably solve this issue,  but I will have to check that it does not break anything

Unfortunately, we have passed code freeze for 2.1 so none of this will not be included in
this version, but I will include it in trunk when I get the chance, and it will end up in
2.2 (probably some time Q4 this year).

BTW, if you'd like to get more involved in the project, we would not stop you. :) There's
only 2 active developers at this time.

Best regards,

> Order of params in configuration is significant
> -----------------------------------------------
>                 Key: LOG4PHP-114
>                 URL: https://issues.apache.org/jira/browse/LOG4PHP-114
>             Project: Log4php
>          Issue Type: Bug
>          Components: Code
>    Affects Versions: 2.0
>            Reporter: Darja Ryazhskikh
>             Fix For: 2.2
> For example. Config as:
> <appender name="default" class="LoggerAppenderDailyFile">
>     <param name="datePattern" value="Y-m-d" />
>     <param name="file" value="logs/%s.log" />
> </appender>
> works not as:
> <appender name="default" class="LoggerAppenderDailyFile">
>     <param name="file" value="logs/%s.log" />
>     <param name="datePattern" value="Y-m-d" />
> </appender>
> That's because of setFile happens before datePattern is set. But it is unexpected behavior
for user.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message