Skip to content

Instantly share code, notes, and snippets.

@Kpeved
Created November 12, 2019 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kpeved/3c2e78668737b980b1affc73c0e5b35a to your computer and use it in GitHub Desktop.
Save Kpeved/3c2e78668737b980b1affc73c0e5b35a to your computer and use it in GitHub Desktop.
class CrashReportingTree : Timber.Tree() {
@SuppressLint("LogNotTimber")
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
if (priority == Log.DEBUG || priority == Log.ERROR) {
Log.e("ho", "Log was secured")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment