think\Log::check PHP 메소드

check() 공개 정적인 메소드

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