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

Updated to Timber.Tree #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

varshneyjayant
Copy link

  1. Timber.HollowTree was deprecated
  2. Added support for Appname

1. Timber.HollowTree  was deprecated
2. Added support for Appname
@@ -193,7 +250,7 @@ private String toJson(Level level, String message, Throwable t, Object... args)
* @param t throwable
* @param args message formatting arguments
*/
private void log(Level level, String message, Throwable t, Object... args) {
private void log(int level, String message, Throwable t, Object... args) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@psquickitjayant why change from Level to int?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mostlyjason the new library Timber.Tree takes int as parameter

@varshneyjayant
Copy link
Author

@tony19 We have improved the usage of enums

@varshneyjayant
Copy link
Author

Removed extra code for tags but made tag as parameter to be passed in the constructor as tag is best way to create source groups in Loggly. https://www.loggly.com/docs/source-groups/

@varshneyjayant
Copy link
Author

Do you want a separate PR as feature update for appName? @tony19

@varshneyjayant
Copy link
Author

updated comments.

@@ -53,6 +54,43 @@ public LogglyTree(String token) {
handler = new LogglyClient.Callback() {
@Override
public void success() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@darran-kelinske-fivestars

What do we need to do to get a new version of Timber supported? I can take over this PR if necessary.

@varshneyjayant
Copy link
Author

@darren-kelinske-fivestars Please go ahead and raise a PR. Also, please directly contact the loggly github page. Thanks, Jayant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants