ch.qos.logback.ext.loggly
Class LogglyAppender<E>

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.UnsynchronizedAppenderBase<E>
          extended by ch.qos.logback.ext.loggly.AbstractLogglyAppender<E>
              extended by ch.qos.logback.ext.loggly.LogglyAppender<E>
All Implemented Interfaces:
ch.qos.logback.core.Appender<E>, ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.FilterAttachable<E>, ch.qos.logback.core.spi.LifeCycle

public class LogglyAppender<E>
extends AbstractLogglyAppender<E>

An Appender that posts logging messages to Loggly, a cloud logging service.

Since:
0.1
Author:
MÃ¥rten Gustafson, Les Hazlewood

Field Summary
static String ENDPOINT_URL_PATH
           
 
Fields inherited from class ch.qos.logback.ext.loggly.AbstractLogglyAppender
DEFAULT_ENDPOINT_PREFIX, DEFAULT_LAYOUT_PATTERN, endpointUrl, inputKey, layout, layoutCreatedImplicitly, proxy, UTF_8
 
Fields inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
name, started
 
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
 
Constructor Summary
LogglyAppender()
           
 
Method Summary
protected  void append(E eventObject)
           
protected  String getEndpointPrefix()
          Returns the URL path prefix for the Loggly endpoint to which the implementing class will send log events.
 
Methods inherited from class ch.qos.logback.ext.loggly.AbstractLogglyAppender
buildEndpointUrl, createLayout, ensureLayout, getEndpointUrl, getHttpReadTimeoutInMillis, getInputKey, getLayout, getPattern, getProxyHost, getProxyPort, readResponseBody, setEndpointUrl, setHttpReadTimeoutInMillis, setInputKey, setLayout, setPattern, setProxyHost, setProxyPort, setProxyPort, start, stop, toBytes
 
Methods inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString
 
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, wait, wait, wait
 
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
 

Field Detail

ENDPOINT_URL_PATH

public static final String ENDPOINT_URL_PATH
See Also:
Constant Field Values
Constructor Detail

LogglyAppender

public LogglyAppender()
Method Detail

append

protected void append(E eventObject)
Specified by:
append in class ch.qos.logback.core.UnsynchronizedAppenderBase<E>

getEndpointPrefix

protected String getEndpointPrefix()
Description copied from class: AbstractLogglyAppender
Returns the URL path prefix for the Loggly endpoint to which the implementing class will send log events. This path prefix varies for the different Loggly services. The final endpoint URL is built by concatenating the AbstractLogglyAppender.DEFAULT_ENDPOINT_PREFIX with the endpoint prefix from AbstractLogglyAppender.getEndpointPrefix() and the AbstractLogglyAppender.inputKey.

Specified by:
getEndpointPrefix in class AbstractLogglyAppender<E>
Returns:
the URL path prefix for the Loggly endpoint


Copyright © 2014-2015. All Rights Reserved.