Package net.logstash.logback.composite
Interface AbstractFormattedTimestampJsonProvider.TimestampWriter
- All Known Implementing Classes:
AbstractFormattedTimestampJsonProvider.NumberTimestampWriter
,AbstractFormattedTimestampJsonProvider.StringFormatterWriter
- Enclosing class:
- AbstractFormattedTimestampJsonProvider<Event extends DeferredProcessingAware,
FieldNames extends LogstashCommonFieldNames>
protected static interface AbstractFormattedTimestampJsonProvider.TimestampWriter
Writes the timestamp to the JsonGenerator
-
Method Summary
Modifier and TypeMethodDescriptiongetTimestampAsString
(Instant timestamp) void
writeTo
(JsonGenerator generator, String fieldName, Instant timestamp)
-
Method Details
-
writeTo
- Throws:
IOException
-
getTimestampAsString
-