Class ExtendedLogFormatSink

java.lang.Object
org.zalando.logbook.core.ExtendedLogFormatSink
All Implemented Interfaces:
org.zalando.logbook.Sink

@API(status=EXPERIMENTAL) public final class ExtendedLogFormatSink extends Object implements org.zalando.logbook.Sink
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExtendedLogFormatSink(org.zalando.logbook.HttpLogWriter writer)
     
    ExtendedLogFormatSink(org.zalando.logbook.HttpLogWriter writer, String fields)
     
    ExtendedLogFormatSink(org.zalando.logbook.HttpLogWriter writer, ZoneId timeZone, String version, String fields)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    write(org.zalando.logbook.Correlation correlation, org.zalando.logbook.HttpRequest request, org.zalando.logbook.HttpResponse response)
     
    void
    write(org.zalando.logbook.Precorrelation precorrelation, org.zalando.logbook.HttpRequest request)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.zalando.logbook.Sink

    writeBoth
  • Constructor Details

    • ExtendedLogFormatSink

      public ExtendedLogFormatSink(org.zalando.logbook.HttpLogWriter writer)
    • ExtendedLogFormatSink

      public ExtendedLogFormatSink(org.zalando.logbook.HttpLogWriter writer, String fields)
    • ExtendedLogFormatSink

      public ExtendedLogFormatSink(org.zalando.logbook.HttpLogWriter writer, ZoneId timeZone, String version, String fields)
  • Method Details

    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface org.zalando.logbook.Sink
    • write

      public void write(org.zalando.logbook.Precorrelation precorrelation, org.zalando.logbook.HttpRequest request)
      Specified by:
      write in interface org.zalando.logbook.Sink
    • write

      public void write(org.zalando.logbook.Correlation correlation, org.zalando.logbook.HttpRequest request, org.zalando.logbook.HttpResponse response) throws IOException
      Specified by:
      write in interface org.zalando.logbook.Sink
      Throws:
      IOException