コード例 #1
0
ファイル: Logging.php プロジェクト: supertanglang/dht
 public static function basicConfig($level, $options = [])
 {
     if (!isset(self::$levels[$level])) {
         throw new Exception("no level named {$level}");
     } else {
         self::$level = $level;
     }
     if (isset($options['file'])) {
         self::$file = $options['file'];
     }
     if (isset($options['format'])) {
         self::$format = $options['format'];
     }
     if (isset($options['datefmt'])) {
         self::$datefmt = $options['datefmt'];
     }
 }