示例#1
0
 private static function _getLogString($current_args)
 {
     $str = 'PROFILER: ' . strftime('%m-%d %H:%M:%S') . ' ' . $current_args['module'] . ' * ' . posix_getpid();
     $str .= ' [logid=' . (defined('LOG_ID') ? LOG_ID : Bd_Env::getLogID());
     $args = array();
     foreach ($current_args as $key => $value) {
         $args[] = rawurlencode($key) . '=' . rawurlencode($value);
     }
     $str .= ' ' . implode(' ', $args) . "]\n";
     return $str;
 }