Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Make SDK logging abstract and configurable - #12391

Closed
tobrun wants to merge 3 commits into
masterfrom
tvn-configurable-logger
Closed

tobrun wants to merge 3 commits into
masterfrom
tvn-configurable-logger

Conversation

@tobrun

@tobrun tobrun commented Jul 16, 2018 •

Copy link
Copy Markdown
Member

This PR abstracts the concept of a logger and makes this configurable for an end user. The default implementation uses Log.java, the test app will replace this configuration with Timber.java. Due to abstraction we don't need to package Timber with the SDK anymore.

TODO:

  • replace android_log_print invocations on the c++ side and route through Logger.java.
  • expose Timber configuration on testapp.
  • ticket out removing Timber from SDK dependencies with next semver.

cc @zugaldia

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Jul 16, 2018
@tobrun tobrun added this to the android-v6.3.0 milestone Jul 16, 2018
@tobrun tobrun self-assigned this Jul 16, 2018
@tobrun
tobrun requested a review from LukasPaczos July 16, 2018 11:44
@tobrun
tobrun force-pushed the tvn-configurable-logger branch from b7b8cab to 3d52410 Compare July 16, 2018 11:54
}else{
auto method = _class.GetStaticMethod<Signature>(env, "e");
_class.Call(env, method, message);
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

if-else block can be simplified

@tobrun tobrun modified the milestones: android-v6.3.0, android-v6.4.0 Jul 17, 2018

@LukasPaczos LukasPaczos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚀

@tobrun

tobrun commented Jul 24, 2018

Copy link
Copy Markdown
Member Author

continuing this in #12468

@tobrun tobrun closed this Jul 24, 2018
@tobrun
tobrun deleted the tvn-configurable-logger branch July 24, 2018 14:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Android Mapbox Maps SDK for Android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants