Uploaded image for project: 'Log4php'
  1. Log4php
  2. LOG4PHP-114

Order of params in LoggerAppenderDailyFile configuration is significant

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.2.0
    • Code
    • None

    Description

      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.

      Attachments

        Activity

          People

            juice Ivan Habunek
            darja Darja Ryazhskikh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: