Class LemaAppender

  • All Implemented Interfaces:
    ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.LoggingEvent>, ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.FilterAttachable<ch.qos.logback.classic.spi.LoggingEvent>, ch.qos.logback.core.spi.LifeCycle

    public final class LemaAppender
    extends ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.LoggingEvent>
    Asynchroner Socket-Appender. Die Klasse verwaltet die Attribute und stellt Logback zufrieden; das eigentliche Senden uebernimmt der EventSender.
    • Constructor Detail

      • LemaAppender

        public LemaAppender()
    • Method Detail

      • getBufferSize

        public int getBufferSize()
      • setBufferSize

        public void setBufferSize​(int bufferSize)
      • setConnectOnDemand

        public void setConnectOnDemand​(boolean connectOnDemand)
      • getConnectOnDemandDisconnectTime

        public int getConnectOnDemandDisconnectTime()
      • setConnectOnDemandDisconnectTime

        public void setConnectOnDemandDisconnectTime​(int connectOnDemandDisconnectTime)
      • isConnectOnDemand

        public boolean isConnectOnDemand()
      • isAppendExtraInfo

        public boolean isAppendExtraInfo()
      • setAppendExtraInfo

        public void setAppendExtraInfo​(boolean appendExtraInfo)
      • getConnectionLostStrategyParameter

        public String getConnectionLostStrategyParameter()
      • setConnectionLostStrategyParameter

        public void setConnectionLostStrategyParameter​(String connectionLostStrategyParameter)
      • getConnectionLostStrategy

        public String getConnectionLostStrategy()
      • setConnectionLostStrategy

        public void setConnectionLostStrategy​(String connectionLostStrategy)
      • getApplicationVersion

        public String getApplicationVersion()
      • setApplicationVersion

        public void setApplicationVersion​(String applicationVersion)
      • getSendeBeacon

        public boolean getSendeBeacon()
      • setSendeBeacon

        public void setSendeBeacon​(boolean sendeBeacon)
      • start

        public void start()
        Startet den Sender; Scheitert dies hier wird es nicht nocheinmal probiert, da ein Fataler Fehler vorliegt.
        Specified by:
        start in interface ch.qos.logback.core.spi.LifeCycle
        Overrides:
        start in class ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.LoggingEvent>
      • append

        public void append​(ch.qos.logback.classic.spi.LoggingEvent event)
        Specified by:
        append in class ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.LoggingEvent>
      • stop

        public void stop()
        Specified by:
        stop in interface ch.qos.logback.core.spi.LifeCycle
        Overrides:
        stop in class ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.LoggingEvent>
      • getApplication

        public String getApplication()
      • getLocationInfo

        public boolean getLocationInfo()
      • getPort

        public String getPort()
      • getReconnectionDelay

        public String getReconnectionDelay()
      • getRemoteHost

        public String getRemoteHost()
      • getEnvironmentId

        public String getEnvironmentId()
      • getEnvironmentIdAsInt

        public int getEnvironmentIdAsInt()
      • requiresLayout

        public boolean requiresLayout()
        The SocketAppender does not use a layout. Hence, this method returns false.
      • setApplication

        public void setApplication​(String application)
      • setLocationInfo

        public void setLocationInfo​(boolean locationInfo)
        The LocationInfo option takes a boolean value. If true, the information sent to the remote host will include location information.
      • setPort

        public void setPort​(String port)
      • setReconnectionDelay

        public void setReconnectionDelay​(String delay)
      • setRemoteHost

        public void setRemoteHost​(String host)
        The RemoteHost option takes a string value which should be the host name of the server where a SocketNode is running.
      • setEnvironmentId

        public void setEnvironmentId​(String environmentId)
      • getHostname

        public String getHostname()
      • setHostname

        public void setHostname​(String hostname)