When the given value is identified by this TurboFilter, the reply is based on the OnMatch option. The information is taken from the MDC. For this TurboFilter to work, one must set the key that will be used to access the information in the MDC.
To allow output for the value, set the OnMatch option to ACCEPT. To disable output for the given value, set the OnMatch option to DENY.
By default, values of the OnMatch and OnMisMatch options are set to NEUTRAL.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public FilterReply | |
| public void | |
| public void | |
| public void | start()
Overrides ch. Implements ch. |
| MDCKey | back to summary |
|---|---|
| pack-priv String MDCKey | |
| value | back to summary |
|---|---|
| pack-priv String value | |
| MDCFilter | back to summary |
|---|---|
| public MDCFilter() | |
| decide | back to summary |
|---|---|
| public FilterReply decide(Marker marker, Logger logger, Level level, String format, Object[] params, Throwable t) Implements abstract ch. Doc from ch. Make a decision based on the multiple parameters passed as arguments. The
returned value should be one of
| |
| setMDCKey | back to summary |
|---|---|
| public void setMDCKey(String MDCKey) | |
| setValue | back to summary |
|---|---|
| public void setValue(String value) | |
| start | back to summary |
|---|---|
| public void start() Overrides ch. Implements ch.
| |