Package net.logstash.logback.pattern
Interface NodeWriter<Event>
- Type Parameters:
Event
- - type of the event (ILoggingEvent, IAccessEvent)
- All Known Implementing Classes:
AbstractJsonPatternParser.ArrayWriter
,AbstractJsonPatternParser.ObjectWriter
,AbstractJsonPatternParser.ValueWriter
public interface NodeWriter<Event>
Writes a JSON pattern node into JSON generator supplied.
- Author:
- Dmitry Andrianov
-
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(JsonGenerator generator, Event event) Writes this node to the given generator.
-
Method Details
-
write
Writes this node to the given generator.- Parameters:
generator
- the generator to which to write the nodeevent
- the event from which to get data to write- Throws:
IOException
- if an I/O error occurs
-