/** * @param string $namespace_ * @param string $message_ * @param mixed... $args_ */ function f($namespace_, $message_) { \Components\Log::current()->append(\Components\Log::FATAL, func_get_args()); }
/** * Log exception. * * @param \Exception $e_ */ function exception_log(\Exception $e_) { if ($e_ instanceof \Components\Runtime_Exception) { $e_->log(); } else { $type = get_class($e_); \Components\Log::error(strtolower(strtr($type, '\\_', '//')), '[%s] %s%s', \math\hasho_md5($e_), $type, $e_); } }