示例#1
0
文件: gitblog.php 项目: rsms/gitblog
 static function openlog($ident = null, $options = LOG_PID, $facility = LOG_USER)
 {
     if ($ident === null) {
         $u = parse_url(gb::$site_url);
         $ident = 'gitblog.' . isset($u['host']) ? $u['host'] . '.' : '';
         if (isset($u['path'])) {
             $ident .= str_replace('/', '.', trim($u['path'], '/'));
         }
     }
     self::$log_open = openlog($ident, $options, $facility);
     return self::$log_open;
 }