Ejemplo n.º 1
0
 /**
  * 设置是否写SQL日志
  *
  * @return bool
  */
 public static function enableLogging($bool = null)
 {
     if (null !== $bool) {
         self::$_enableLogging = (bool) $bool;
     }
     // 非调试模式下永远为否
     return !isDebug() ? false : self::$_enableLogging;
 }