com.preemptive.instrumentation
Class Log4JAppender

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by com.preemptive.instrumentation.Log4JAppender
All Implemented Interfaces:
Appender, OptionHandler

public class Log4JAppender
extends AppenderSkeleton

This log4j appender sends messages to the PreEmptive Analytics server.

The appender use the following parameters:

All parameters are optional unless otherwise specified.

Binary information (binaryName, binaryId, binaryVersion) are used when multiple appender instances are associated with different packages or jars.

Note: if the PreEmptive Analytics system has been configured and started by the application or by another Appender then the configuration parameters will be ignored.


Constructor Summary
Log4JAppender()
           
 
Method Summary
 void activateOptions()
          
 void append(LoggingEvent event)
          
 void close()
          
 String getApplicationId()
           
 String getApplicationInstance()
           
 String getApplicationName()
           
 String getApplicationType()
           
 String getApplicationVersion()
           
 String getBinaryId()
           
 String getBinaryName()
           
 String getBinaryVersion()
           
 String getCompanyId()
           
 String getCompanyName()
           
 String getEndpoint()
           
 String getFlowController()
           
 String getNameLayout()
           
 String getPropertiesLayout()
           
 int getSendInterval()
           
 boolean isFullDataMode()
           
 boolean isSendDisabled()
           
 boolean isSupportOfflineMode()
           
 boolean isSystemProfile()
           
 boolean isUseSsl()
           
 boolean requiresLayout()
          
 void setApplicationId(String applicationId)
           
 void setApplicationInstance(String applicationInstance)
           
 void setApplicationName(String applicationName)
           
 void setApplicationType(String applicationType)
           
 void setApplicationVersion(String applicationVersion)
           
 void setBinaryId(String binaryId)
           
 void setBinaryName(String binaryName)
           
 void setBinaryVersion(String binaryVersion)
           
 void setCompanyId(String companyId)
           
 void setCompanyName(String companyName)
           
 void setEndpoint(String endpoint)
           
 void setFlowController(String flowController)
           
 void setFullDataMode(boolean fullDataMode)
           
 void setNameLayout(String nameLayout)
           
 void setPropertiesLayout(String propertiesLayout)
           
 void setSendDisabled(boolean sendDisabled)
           
 void setSendInterval(int sendInterval)
           
 void setSupportOfflineMode(boolean supportOfflineMode)
           
 void setSystemProfile(boolean systemProfile)
           
 void setUseSsl(boolean useSsl)
           
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4JAppender

public Log4JAppender()
Method Detail

requiresLayout

public boolean requiresLayout()


activateOptions

public void activateOptions()

Specified by:
activateOptions in interface OptionHandler
Overrides:
activateOptions in class AppenderSkeleton

append

public void append(LoggingEvent event)

Specified by:
append in class AppenderSkeleton

close

public void close()


getApplicationId

public String getApplicationId()

setApplicationId

public void setApplicationId(String applicationId)

getApplicationInstance

public String getApplicationInstance()

setApplicationInstance

public void setApplicationInstance(String applicationInstance)

getApplicationName

public String getApplicationName()

setApplicationName

public void setApplicationName(String applicationName)

getApplicationType

public String getApplicationType()

setApplicationType

public void setApplicationType(String applicationType)

getApplicationVersion

public String getApplicationVersion()

setApplicationVersion

public void setApplicationVersion(String applicationVersion)

getCompanyId

public String getCompanyId()

setCompanyId

public void setCompanyId(String companyId)

getCompanyName

public String getCompanyName()

setCompanyName

public void setCompanyName(String companyName)

isFullDataMode

public boolean isFullDataMode()

setFullDataMode

public void setFullDataMode(boolean fullDataMode)

isSendDisabled

public boolean isSendDisabled()

setSendDisabled

public void setSendDisabled(boolean sendDisabled)

isUseSsl

public boolean isUseSsl()

setUseSsl

public void setUseSsl(boolean useSsl)

getSendInterval

public int getSendInterval()

setSendInterval

public void setSendInterval(int sendInterval)

getEndpoint

public String getEndpoint()

setEndpoint

public void setEndpoint(String endpoint)

isSupportOfflineMode

public boolean isSupportOfflineMode()

setSupportOfflineMode

public void setSupportOfflineMode(boolean supportOfflineMode)

getBinaryId

public String getBinaryId()

setBinaryId

public void setBinaryId(String binaryId)

getBinaryName

public String getBinaryName()

setBinaryName

public void setBinaryName(String binaryName)

getBinaryVersion

public String getBinaryVersion()

setBinaryVersion

public void setBinaryVersion(String binaryVersion)

getNameLayout

public String getNameLayout()

setNameLayout

public void setNameLayout(String nameLayout)

getPropertiesLayout

public String getPropertiesLayout()

setPropertiesLayout

public void setPropertiesLayout(String propertiesLayout)

getFlowController

public String getFlowController()

setFlowController

public void setFlowController(String flowController)

isSystemProfile

public boolean isSystemProfile()

setSystemProfile

public void setSystemProfile(boolean systemProfile)


Copyright © 2013 PreEmptive Solutions, LLC. All Rights Reserved.