public class LogentriesAppender
extends org.apache.log4j.AppenderSkeleton
| Constructor and Description |
|---|
LogentriesAppender() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(org.apache.log4j.spi.LoggingEvent event)
Implements AppenderSkeleton Append method, handles time and format
|
void |
close()
Closes all connections to Logentries
|
boolean |
requiresLayout() |
void |
setDataHubAddr(java.lang.String dataHubAddr)
Sets the address where DataHub server resides.
|
void |
setDataHubPort(int dataHubPort)
Sets the port number on which DataHub instance waits for log messages.
|
void |
setDebug(boolean debug)
Sets the debug flag.
|
void |
setHostName(java.lang.String hostName)
Sets the HostName from the configuration
|
void |
setHttpPut(boolean HttpPut)
Sets the HTTP PUT boolean flag.
|
void |
setIsUsingDataHub(boolean useDataHub)
Sets the flag which determines if DataHub instance is used instead of Logentries service.
|
void |
setKey(java.lang.String account_key)
Sets the ACCOUNT KEY value for HTTP PUT
|
void |
setLocation(java.lang.String log_location)
Sets the LOCATION value for HTTP PUT
|
void |
setLogHostName(boolean logHostName)
Determines whether to send HostName alongside with the log message
|
void |
setLogID(java.lang.String logID)
Sets LogID parameter from the configuration
|
void |
setSsl(boolean ssl)
Sets the SSL boolean flag
|
void |
setToken(java.lang.String token)
Sets the token
|
public void setToken(java.lang.String token)
token - public void setHttpPut(boolean HttpPut)
httpput - HttpPut flag to setpublic void setKey(java.lang.String account_key)
account_key - public void setLocation(java.lang.String log_location)
log_location - public void setSsl(boolean ssl)
ssl - public void setDebug(boolean debug)
debug - debug flag to setpublic void setIsUsingDataHub(boolean useDataHub)
useDataHub - set to true to send log messaged to a DataHub instance.public void setDataHubAddr(java.lang.String dataHubAddr)
dataHubAddr - address like "127.0.0.1"public void setDataHubPort(int dataHubPort)
dataHubPort - public void setLogHostName(boolean logHostName)
logHostName - public void setHostName(java.lang.String hostName)
hostName - public void setLogID(java.lang.String logID)
logID - protected void append(org.apache.log4j.spi.LoggingEvent event)
append in class org.apache.log4j.AppenderSkeletonpublic void close()
public boolean requiresLayout()
Copyright © 2015. All Rights Reserved.