src/Log/Log.php
public static function getLogger(string $tag = 'system')
    {
        if (!is_array(self::$CONFIG) || empty(self::$CONFIG)) {
            self::$CONFIG = CONFIG['server']['logs']['config'];
            self::$open = CONFIG['server']['logs']['open'];
        }

        // 根据tag从总配置中获取对应设定，如不存在使用system设定
        $config = isset(self::$CONFIG[$tag]) ? self::$CONFIG[$tag] :
            (isset(self::$CONFIG['system']) ? self::$CONFIG['system'] : []);

        // 设置标签
        $config['tag'] = '' != $tag && 'system' != $tag ? $tag : '-';

        // 返回日志类对象
        return new Log($config, LogLevel::DEBUG);
    }
public static function getLogger(string $tag = 'system')
    {
        if (!is_array(self::$CONFIG) || empty(self::$CONFIG)) {
            self::$CONFIG = CONFIG['server']['logs']['config'];
            self::$open = CONFIG['server']['logs']['open'];
        }

        // 根据tag从总配置中获取对应设定，如不存在使用system设定
        $config = isset(self::$CONFIG[$tag]) ? self::$CONFIG[$tag] :
            (isset(self::$CONFIG['system']) ? self::$CONFIG['system'] : []);

        // 设置标签
        $config['tag'] = '' != $tag && 'system' != $tag ? $tag : '-';

        // 返回日志类对象
        return new Log($config, LogLevel::DEBUG);
    }
获取日志类对象。

@param string $tag

@return Log