Class CloudFoundryAttributeProvider

java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
net.logstash.logback.composite.AbstractJsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>
ch.admin.bag.covidcertificate.log.cloudfoundry.CloudFoundryAttributeProvider
All Implemented Interfaces:
ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.LifeCycle, net.logstash.logback.composite.JsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>

public class CloudFoundryAttributeProvider
extends net.logstash.logback.composite.AbstractJsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>
Provides root-level json attributes for cloud foundry app coordinates (org, space, app, instance), compatible with the CF doppler/firehose log format.
  • Field Summary

    Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase

    context
  • Constructor Summary

    Constructors
    Constructor Description
    CloudFoundryAttributeProvider()  
  • Method Summary

    Modifier and Type Method Description
    void start()  
    void writeTo​(com.fasterxml.jackson.core.JsonGenerator generator, ch.qos.logback.classic.spi.ILoggingEvent iLoggingEvent)  

    Methods inherited from class net.logstash.logback.composite.AbstractJsonProvider

    isStarted, prepareForDeferredProcessing, stop

    Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase

    addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface ch.qos.logback.core.spi.ContextAware

    addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
  • Constructor Details

    • CloudFoundryAttributeProvider

      public CloudFoundryAttributeProvider()
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface ch.qos.logback.core.spi.LifeCycle
      Overrides:
      start in class net.logstash.logback.composite.AbstractJsonProvider<ch.qos.logback.classic.spi.ILoggingEvent>
    • writeTo

      public void writeTo​(com.fasterxml.jackson.core.JsonGenerator generator, ch.qos.logback.classic.spi.ILoggingEvent iLoggingEvent) throws IOException
      Throws:
      IOException