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

LoggerAppenderFile throws wrong warning messages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.0
    • Code
    • 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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: