Log4php
  1. Log4php
  2. LOG4PHP-158

LoggerAppenderFile throws wrong warning messages

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: Code
    • Labels:
      None

      Description

      Florian reported this issue on the experimental branch. It is an appender issue; to be fixed once the work on configurator has been merged to trunk.

      On 10.10.2011. 8:19, Florian Semm wrote:
      > when I have a LoggerAppenderFile config without the option 'file', I got
      > a warning:
      >
      > Warning: mkdir() [<a href='function.mkdir'>function.mkdir</a>]: No such
      > file or directory in
      > C:\xampp\htdocs\Symfony-experimental\vendor\log4php\src\main\php\appenders\LoggerAppenderFile.php
      > line 74
      >
      > The appender execute mkdir(..) with $this->fileName = null/empty string.
      >
      > I think there is a not null check missing in line LoggerAppenderFile:69
      >
      > if ($fileName == null) throw Exception();
      >
      > i work with the experimental branch

        Activity

          People

          • Assignee:
            Ivan Habunek
            Reporter:
            Ivan Habunek
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development