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 |
setDebug(boolean debug)
Sets the debug flag.
|
void |
setHostName(String hostName)
Sets the HostName from the configuration
|
void |
setLogHostName(boolean logHostName)
Determines whether to send HostName alongside with the log message
|
void |
setLogID(String logID)
Sets LogID parameter from the configuration
|
void |
setToken(String token)
Sets the token
|
public void setToken(String token)
token - the logentries tokenpublic void setDebug(boolean debug)
debug - debug flag to setpublic void setLogHostName(boolean logHostName)
logHostName - true to log host namepublic void setHostName(String hostName)
hostName - the host namepublic void setLogID(String logID)
logID - the log idprotected void append(org.apache.log4j.spi.LoggingEvent event)
append in class org.apache.log4j.AppenderSkeletonevent - event to logpublic void close()
public boolean requiresLayout()
Copyright © 2012–2016 Taimos GmbH. All rights reserved.