Code example for FieldAttributes

Methods: getAnnotation

0
        return !log4jLevel.enabled(_logger);
    } 
 
    @Override 
    public boolean shouldSkipField(FieldAttributes field) {
        LogLevel level = field.getAnnotation(LogLevel.class);
        return level != null && !level.value().enabled(_logger);
    } 
 
    public LoggingExclusionStrategy(Logger logger) { 
        _logger = logger; 
    } 
}