Example #1
0
 /**
  * 获取实例
  * @return SocketLog
  */
 private static function getInstance()
 {
     if (self::$instance === NULL) {
         //初始化链接,并对配置做相应操作
         self::$instance = new SocketLog();
         if (!self::$instance->Connect()) {
             self::$instance->config_del();
         }
     }
     return self::$instance;
 }