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.
|
boolean |
getDebug()
Returns current debug flag.
|
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 |
getSsl()
Gets the SSL boolean flag
|
java.lang.String |
getToken()
Returns current token.
|
void |
setDebug(boolean debug)
Sets the debug flag.
|
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 |
setSsl(boolean ssl)
Sets the SSL boolean flag
|
void |
setToken(java.lang.String token)
Sets the token
|
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 addLineToQueue(java.lang.String line)
line - line to appendpublic void close()
Copyright © 2014. All Rights Reserved.