/** * 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_); } }