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 an option to set tag via constructor #2

Closed
wants to merge 2 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

Prev

Removed extra tag constructor

  • Loading branch information
varshneyjayant committed Aug 31, 2015
commit 4dbfb989bd7f0e564ded0d0dbc8c47d75691bdfa
@@ -25,14 +25,14 @@

/**
* Loggly client
*
*
* @author tony19@gmail.com
*/
public class LogglyClient implements ILogglyClient {
private static final String API_URL = "http://logs-01.loggly.com/";
private final ILogglyRestService loggly;
private String token;
private String tags = "android";
private ILogglyRestService loggly;
private final String token;
private String tags;

/**
* Creates a Loggly client
@@ -52,15 +52,7 @@ public LogglyClient(String token) {
this.loggly = restAdapter.create(ILogglyRestService.class);
}

/**
* Creates a Loggly client
* @param token Loggly customer token
* http://loggly.com/docs/customer-token-authentication-token/tag/my-custom-tag
*/
public LogglyClient(String token, String tag) {
this(token);
this.tags = tag;
}


/**
* Creates a Loggly client with the specified REST API.
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.