think\Log::check PHP Method

check() public static method

检查日志写入权限
public static check ( array $config ) : boolean
$config array 当前日志配置参数
return boolean
    public static function check($config)
    {
        if (self::$key && !empty($config['allow_key']) && !in_array(self::$key, $config['allow_key'])) {
            return false;
        }
        return true;
    }