Class AccessMessageJsonProvider
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
net.logstash.logback.composite.AbstractJsonProvider<Event>
net.logstash.logback.composite.AbstractFieldJsonProvider<Event>
net.logstash.logback.composite.AbstractFormattedTimestampJsonProvider<IAccessEvent,LogstashAccessFieldNames>
net.logstash.logback.composite.accessevent.AccessEventFormattedTimestampJsonProvider
net.logstash.logback.composite.accessevent.AccessMessageJsonProvider
- All Implemented Interfaces:
ContextAware,FieldNamesAware<LogstashAccessFieldNames>,JsonProvider<IAccessEvent>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.logstash.logback.composite.AbstractFormattedTimestampJsonProvider
AbstractFormattedTimestampJsonProvider.NumberTimestampWriter, AbstractFormattedTimestampJsonProvider.StringFormatterWriter, AbstractFormattedTimestampJsonProvider.TimestampWriter -
Field Summary
FieldsFields inherited from class net.logstash.logback.composite.AbstractFormattedTimestampJsonProvider
DEFAULT_TIMEZONE_KEYWORD, FIELD_TIMESTAMP, UNIX_TIMESTAMP_AS_NUMBER, UNIX_TIMESTAMP_AS_STRINGFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetFieldNames(LogstashAccessFieldNames fieldNames) voidwriteTo(JsonGenerator generator, IAccessEvent event) Writes information about the event, to the given generator.Methods inherited from class net.logstash.logback.composite.accessevent.AccessEventFormattedTimestampJsonProvider
getTimestampAsInstantMethods inherited from class net.logstash.logback.composite.AbstractFormattedTimestampJsonProvider
getFormattedTimestamp, getPattern, getTimeZone, setPattern, setTimeZoneMethods inherited from class net.logstash.logback.composite.AbstractFieldJsonProvider
getFieldName, setFieldNameMethods inherited from class net.logstash.logback.composite.AbstractJsonProvider
assertIsStarted, isStarted, prepareForDeferredProcessing, start, stopMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Field Details
-
FIELD_MESSAGE
- See Also:
-
-
Constructor Details
-
AccessMessageJsonProvider
public AccessMessageJsonProvider()
-
-
Method Details
-
writeTo
Description copied from interface:JsonProviderWrites information about the event, to the given generator.When called, the generator is assumed to be within a JSON object context (i.e. this provider should write fields and their values to the generator). Upon return, the generator should be within the same JSON object context.
- Specified by:
writeToin interfaceJsonProvider<IAccessEvent>- Overrides:
writeToin classAbstractFormattedTimestampJsonProvider<IAccessEvent,LogstashAccessFieldNames> - Parameters:
generator- theJsonGeneratorto produce JSON contentevent- the event to convert into JSON- Throws:
IOException- if an I/O error occurs
-
setFieldNames
- Specified by:
setFieldNamesin interfaceFieldNamesAware<LogstashAccessFieldNames>- Overrides:
setFieldNamesin classAbstractFormattedTimestampJsonProvider<IAccessEvent,LogstashAccessFieldNames>
-