You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by "darja (JIRA)" <ji...@apache.org> on 2010/04/26 14:38:32 UTC

[jira] Created: (LOG4PHP-114) Order of params in configuration is significant

Order of params in configuration is significant
-----------------------------------------------

                 Key: LOG4PHP-114
                 URL: https://issues.apache.org/jira/browse/LOG4PHP-114
             Project: Log4php
          Issue Type: Bug
            Reporter: darja
            Priority: Minor


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.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (LOG4PHP-114) Order of params in configuration is significant

Posted by "darja (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4PHP-114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

darja updated LOG4PHP-114:
--------------------------

    Component/s: Code

> 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
>            Reporter: darja
>            Priority: Minor
>
> 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (LOG4PHP-114) Order of params in configuration is significant

Posted by "Christian Grobmeier (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LOG4PHP-114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Grobmeier updated LOG4PHP-114:
----------------------------------------

        Fix Version/s: 2.2
    Affects Version/s: 2.0
             Priority: Major  (was: Minor)

Also:
loggers and appenders needs to be defined in the correct order aswell

> 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
>             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.
-
You can reply to this email to add a comment to the issue online.