Update MainLogger.php

This commit is contained in:
Shoghi Cervantes 2014-06-07 04:19:19 +02:00
parent 1c20fcc8c7
commit 41fe4a527a

View File

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