public function logError($error, $msg = '')
    {
        if (is_object($error)) {
            // we got exception object obviously
            $error = $error->getMessage();
        }
        $this->app->getLogger()->logLine($msg.' '.$error."\n", null, 'error');
    }
public function logError($error, $msg = '')
    {
        if (is_object($error)) {
            // we got exception object obviously
            $error = $error->getMessage();
        }
        $this->app->getLogger()->logLine($msg.' '.$error."\n", null, 'error');
    }
public function logError ( $ error , $ msg = '' ) { if ( is_object ( $ error ) ) { // we got exception object obviously $ error = $ error -> getMessage ( ) ; } $ this -> app -> getLogger ( ) -> logLine ( $ msg . ' ' . $ error . "\n" , null , 'error' ) ; }
Output string into error file.

@param string $error error
@param string $msg   msg

@obsolete
Output string into error file .