/** * Output string into error file. * * @param string $error error * @param string $msg msg * * @obsolete */ 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'); }