src/Log.php
public static function init($app = 'text', $logPath = '/data/log', $timeZone = 'Asia/Shanghai', $debug = false)
    {
        if (!self::$_instance) {
            date_default_timezone_set($timeZone);
            self::$_app = $app;
            self::$_debug = $debug;
            self::$_logPath = realpath($logPath);
            self::$_instance = new self();
        }
        return self::$_instance;
    }
public static function init($app = 'text', $logPath = '/data/log', $timeZone = 'Asia/Shanghai', $debug = false)
    {
        if (!self::$_instance) {
            date_default_timezone_set($timeZone);
            self::$_app = $app;
            self::$_debug = $debug;
            self::$_logPath = realpath($logPath);
            self::$_instance = new self();
        }
        return self::$_instance;
    }
初始化全局配置变量
@param string $app
@param string $logPath
@param string $timeZone
@param bool $debug