sLoggerFileName = $sLoggerFileName; $this->sNewLine = $sNewLine; } public function SetLoggerFileName(string $sLoggerFileName) { $this->sLoggerFileName = $sLoggerFileName; } protected function writeImplementation($mDesc) : bool { return $this->writeToLogFile($mDesc); } protected function clearImplementation() : bool { return \unlink($this->sLoggerFileName); } private function writeToLogFile($mDesc) : bool { if (\is_array($mDesc)) { $mDesc = \implode($this->sNewLine, $mDesc); } return \error_log($mDesc.$this->sNewLine, 3, $this->sLoggerFileName); } }