Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for appname #2

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Fixed Whitespace issues

  • Loading branch information
varshneyjayant committed Aug 12, 2015
commit c646808d0d60b8685fd3f07020dc2f1c3b9e7b17
@@ -56,7 +56,8 @@ public LogglyTree(String token) {
loggly = new LogglyClient(token);

// TODO: handle failed messages with N retries
handler = new LogglyClient.Callback() {@Override
handler = new LogglyClient.Callback() {
@Override
public void success() {

}
@@ -246,15 +247,36 @@ private String toJson(int level, String message, Throwable t, Object... args) {

}

/**
* Asynchronously sends a log event to Loggly
* @param level log severity level
* @param message message to be logged
* @param t throwable
* @param args message formatting arguments
*/

private void log(int level, String message, Throwable t, Object... args) {
loggly.log(toJson(level, message, t, args), handler);
}

/**
* Asynchronously sends a log event to Loggly
* @param level log severity level
* @param message message to be logged
* @param args message formatting arguments
*/

private void log(int level, String message, Object... args) {
loggly.log(toJson(level, message, args), handler);
}

private void log(int level, String message, Throwable t, Object... args) {
loggly.log(toJson(level, message, t, args), handler);
}

/**
* Sets the Loggly tag for all logs going forward. This differs from
* the API of {@code Timber.TaggedTree} in that it's not a one-shot
* tag.
* @param tag desired tag or CSV of multiple tags; use empty string
* to clear tags
*/
@Override
protected void log(int level, String tag, String message, Throwable t) {
// TODO Auto-generated method stub
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.