public class LogglyClient extends Object implements ILogglyClient
ILogglyClient.Callback| Constructor and Description |
|---|
LogglyClient(String token)
Creates a Loggly client
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
log(String message)
Posts a log message to Loggly
|
void |
log(String message,
ILogglyClient.Callback callback)
Posts a log message asynchronously to Loggly
|
boolean |
logBulk(Collection<String> messages)
Posts several log messages in bulk to Loggly
|
void |
logBulk(Collection<String> messages,
ILogglyClient.Callback callback)
Posts several log messages in bulk to Loggly asynchronously
|
boolean |
logBulk(String... messages)
Posts several log messages in bulk to Loggly
|
void |
setTags(String... tags)
Sets the tags to use for Loggly messages.
|
public LogglyClient(String token)
token - Loggly customer token
http://loggly.com/docs/customer-token-authentication-token/public void setTags(String... tags)
setTags in interface ILogglyClienttags - CSV or list of tagspublic boolean log(String message)
log in interface ILogglyClientmessage - message to be loggedtrue if successful; false otherwisepublic void log(String message, ILogglyClient.Callback callback)
log in interface ILogglyClientmessage - message to be loggedcallback - callback to be invoked on completion of the postpublic boolean logBulk(String... messages)
logBulk in interface ILogglyClientmessages - messages to be loggedtrue if successful; false otherwisepublic boolean logBulk(Collection<String> messages)
logBulk in interface ILogglyClientmessages - messages to be loggedtrue if successful; false otherwisepublic void logBulk(Collection<String> messages, ILogglyClient.Callback callback)
logBulk in interface ILogglyClientmessages - messages to be loggedcallback - callback to be invoked on completion of the postCopyright © 2015. All rights reserved.