public function getLogger($class_name = UNDEFINED)
{
if (is_null($this->logger)) {
$this->logger = $this->add($class_name === UNDEFINED ? $this->logger_class : $class_name);
}
return $this->logger;
}
/** * 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'); }