-
- All Known Implementing Classes:
AbstractFixedNameFieldMapper,CallerDataFieldMapper,KeyValueFieldMapper,MarkerFieldMapper,MdcDataFieldMapper,RootExceptionDataFieldMapper,SimpleFieldMapper
public interface GelfFieldMapper<T>Field mapper that can be used to add fields to resulting GELF message, usingILoggingEventas input.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmapField(ch.qos.logback.classic.spi.ILoggingEvent event, java.util.function.BiConsumer<java.lang.String,T> valueHandler)Map a field (one or more) fromILoggingEventto a GELF message.
-
-
-
Method Detail
-
mapField
void mapField(ch.qos.logback.classic.spi.ILoggingEvent event, java.util.function.BiConsumer<java.lang.String,T> valueHandler)Map a field (one or more) fromILoggingEventto a GELF message.- Parameters:
event- the source log eventvalueHandler- the consumer of the field (Stringname and value)
-
-