public function write(Exception $exception)
    {

        $pattern = "[%s]%s - (%s:%d) \n";
        $time = date('d.m.Y- h:i');
        $content = sprintf($pattern, $time, $exception->getMessage() ?: '', $exception->getFile() ?: '', $exception->getLine() ?: 0);

        $this->filesystem->append($this->path, $content);
    }