chippyash
24.06.2010, 12:20
line 190 of IDS_Log_File has
if (file_exists($this->logfile)) {
This therefore requires the log file to exist prior to usage. It would be better if the code created the file if it didn't exist and carried on. Simply trap the inability to write to the file on the fOpen statement on line 196 (fOpen will return FALSE if unable to open or create the file.)
As this is an undocumented feature (or at least I can't find it :-) ) it's a bit of a gotcha that can trip you up.
if (file_exists($this->logfile)) {
This therefore requires the log file to exist prior to usage. It would be better if the code created the file if it didn't exist and carried on. Simply trap the inability to write to the file on the fOpen statement on line 196 (fOpen will return FALSE if unable to open or create the file.)
As this is an undocumented feature (or at least I can't find it :-) ) it's a bit of a gotcha that can trip you up.