On 10.10.2011. 8:19, Florian Semm wrote:
Hi,
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();
Thanks, will have a look. But won't throw an exception here, the idea is
to trigger a warning message and close the appender. We decided that we
don't really want log4php to crash peoples apps because it cannot log.
Regards,
Ivan