public function __construct(array $parameters = array()) { if (!array_key_exists('file', $parameters)) { throw new \InvalidArgumentException("No file specified, can not log without a log file!"); } $this->setFile(FSFile::getInstance($parameters['file'])); $this->enableFileColoring(array_key_exists('fileColoring', $parameters) ? $parameters['fileColoring'] : $this->colors); $this->enableStdout(array_key_exists('stdout', $parameters) ? $parameters['stdout'] : $this->stdout); parent::__construct($parameters); parent::enableStdout(FALSE); }