public function write()
    {
        // Crete the file if it does not exist
        $this->makeFile($this->formatter->getFileName());

        // Contents of the original file
        $fileContent = file_get_contents($this->formatter->getFileName());

        // Final log
        $log = join("\n", (array) $this->formatter->generate())."\n";

        // Include the breakpoint
        if (false === empty($this->break) && 1 === preg_match("/^{$this->break}/m", $fileContent)) {
            $splitFileContent = preg_split("/^{$this->break}/m", $fileContent);

            file_put_contents($this->formatter->getFileName(), $splitFileContent[0].$this->break."\n".$log.$splitFileContent[1]);

            return true;
        }

        file_put_contents($this->formatter->getFileName(), $log.$fileContent);

        return true;
    }