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;
    }
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;
    }
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 ; }
Processor function. Sets the syslog log handler
for a Laravel GAE app.

@param string $contents the 'config/app.php' file contents.

@return string the modified file contents.
Processor function . Sets the syslog log handler for a Laravel GAE app .