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;
    }