Fix for log file

This commit is contained in:
Intyre 2014-06-06 02:23:14 +02:00
parent 5355a95d1d
commit 1c20fcc8c7

View File

@ -44,7 +44,7 @@ class MainLogger extends \ThreadedLogger{
throw new \RuntimeException("MainLogger has been already created");
}
static::$logger = $this;
@mkdir(basename($logFile), 0777, true);
touch(basename($logFile));
$this->logFile = $logFile;
$this->hasANSI = (bool) $hasANSI;
$this->logDebug = (bool) $logDebug;