protected function setLogHandler($contents)
    {
        $expression = "/'log'.*=>((?!env\('APP_LOG').)*'\b.+?\b'\)?/";
        $replacement = "'log' => env('APP_LOG', 'single')";

        $modified = preg_replace($expression, $replacement, $contents);

        if ($contents !== $modified)
        {
            $this->myCommand->info('Set the log handler in "config/app.php".');
        }

        return $modified;
    }