public class AsyncLogger
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
LOG_LENGTH_LIMIT
Limit on individual log length ie.
|
| Constructor and Description |
|---|
AsyncLogger()
Initializes asynchronous logging.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLineToQueue(java.lang.String line)
Adds the data to internal queue to be sent over the network.
|
void |
close()
Closes all connections to Logentries.
|
java.lang.String |
getDataHubAddr()
Gets DataHub instance address.
|
int |
getDataHubPort()
Gets port on which DataHub waits for log messages.
|
boolean |
getDebug()
Returns current debug flag.
|
java.lang.String |
getHostName()
Gets HostName parameter
|
boolean |
getHttpPut()
Returns current HttpPut flag.
|
java.lang.String |
getKey()
Gets the ACCOUNT KEY value for HTTP PUT
|
java.lang.String |
getLocation()
Gets the LOCATION value for HTTP PUT
|
boolean |
getLogHostName()
Gets value of the switch that determines whether to send HostName alongside with the log message
|
java.lang.String |
getLogID()
Gets LogID parameter
|
boolean |
getSsl()
Gets the SSL boolean flag
|
java.lang.String |
getToken()
Returns current token.
|
boolean |
getUseDataHub()
Gets value of useDataHub flag.
|
void |
setDataHubAddr(java.lang.String dataHubAddr)
Sets DataHub instance address.
|
void |
setDataHubPort(int dataHubPort)
Sets port on which DataHub waits for log messages.
|
void |
setDebug(boolean debug)
Sets the debug flag.
|
void |
setHostName(java.lang.String hostName)
Sets the HostName from configuration
|
void |
setHttpPut(boolean HttpPut)
Sets the HTTP PUT boolean flag.
|
void |
setKey(java.lang.String account_key)
Sets the ACCOUNT KEY value for HTTP PUT
|
void |
setLocation(java.lang.String log_location)
Gets the LOCATION value for HTTP PUT
|
void |
setLogHostName(boolean logHostName)
Sets value of the switch that determines whether to send HostName alongside with the log message
|
void |
setLogID(java.lang.String logID)
Sets LogID parameter from config
|
void |
setSsl(boolean ssl)
Sets the SSL boolean flag
|
void |
setToken(java.lang.String token)
Sets the token
|
void |
setUseDataHub(boolean isUsingDataHub)
Sets useDataHub flag.
|
public static final int LOG_LENGTH_LIMIT
public void setToken(java.lang.String token)
token - public java.lang.String getToken()
public void setHttpPut(boolean HttpPut)
HttpPut - HttpPut flag to setpublic boolean getHttpPut()
public void setKey(java.lang.String account_key)
account_key - public java.lang.String getKey()
public void setLocation(java.lang.String log_location)
log_location - public java.lang.String getLocation()
public void setSsl(boolean ssl)
ssl - public boolean getSsl()
public void setDebug(boolean debug)
debug - debug flag to setpublic boolean getDebug()
public void setUseDataHub(boolean isUsingDataHub)
isUsingDataHub - public boolean getUseDataHub()
public void setDataHubAddr(java.lang.String dataHubAddr)
dataHubAddr - public java.lang.String getDataHubAddr()
public void setDataHubPort(int dataHubPort)
dataHubPort - public int getDataHubPort()
public void setLogHostName(boolean logHostName)
logHostName - public boolean getLogHostName()
public void setHostName(java.lang.String hostName)
hostName - public java.lang.String getHostName()
public void setLogID(java.lang.String logID)
logID - public java.lang.String getLogID()
public void addLineToQueue(java.lang.String line)
line - line to appendpublic void close()
Copyright © 2017. All Rights Reserved.