public function __construct($logFile, $logDebug = false)
{
if (static::$logger instanceof MainLogger) {
throw new \RuntimeException("MainLogger has been already created");
}
static::$logger = $this;
touch($logFile);
$this->logFile = $logFile;
$this->logDebug = (bool) $logDebug;
$this->logStream = new \Threaded();
$this->start();
}