original_string: 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');
      }
code: 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');
      }
code_tokens: 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' ) ; }
docstring: Output string into error file.
  
  @param string $error error
  @param string $msg   msg
  
  @obsolete
docstring_tokens: Output string into error file .