src/main/java/com/arpnetworking/logback/StenoEncoder.java
public void setRedactNull(final boolean redactNull) {
        if (_redactEnabled) {
            final SimpleFilterProvider simpleFilterProvider = new SimpleFilterProvider();
            simpleFilterProvider.addFilter(RedactionFilter.REDACTION_FILTER_ID, new RedactionFilter(!redactNull));
            _objectMapper.setFilterProvider(simpleFilterProvider);
        }
        _redactNull = redactNull;
    }
public void setRedactNull(final boolean redactNull) {
        if (_redactEnabled) {
            final SimpleFilterProvider simpleFilterProvider = new SimpleFilterProvider();
            simpleFilterProvider.addFilter(RedactionFilter.REDACTION_FILTER_ID, new RedactionFilter(!redactNull));
            _objectMapper.setFilterProvider(simpleFilterProvider);
        }
        _redactNull = redactNull;
    }
public void setRedactNull ( final boolean redactNull ) { if ( _redactEnabled ) { final SimpleFilterProvider simpleFilterProvider = new SimpleFilterProvider ( ) ; simpleFilterProvider . addFilter ( RedactionFilter . REDACTION_FILTER_ID , new RedactionFilter ( ! redactNull ) ) ; _objectMapper . setFilterProvider ( simpleFilterProvider ) ; } _redactNull = redactNull ; }
Enables/Disables output of null for redacted fields when serializing complex objects.

@param redactNull - true to redact null values, assuming redactEnabled is true

@since 1.1.0
Enables / Disables output of null for redacted fields when serializing complex objects .