/** * 打印FATAL日志,会同时打出MONITOR日志的标识 * @param string $fmt 格式字符串 * @param mixed $arg data * @return void */ public static function fatal() { $arg = func_get_args(); if (false === self::$_disable_ostream) { __ub_log(__mc_log::LOG_FATAL, $arg); } self::log(BigpipeLogSeverity::FATAL, $arg); }
/** * UB_LOG_FATAL FATAL日志,会同时打出MONITOR日志的标识 * * @param string $fmt 格式字符串 * @param mixed $arg data * @return void */ function UB_LOG_FATAL() { $arg = func_get_args(); __ub_log(__mc_log::LOG_FATAL, $arg); }
/** * 记日志的函数 * * @param int $level level maybe [CYE_ERROR|CYE_WARNING|CYE_ACCESS|...] */ function cy_log($level) { $arg = func_get_args(); array_shift($arg); __ub_log($level, $arg); }