Skip to content

Instantly share code, notes, and snippets.

@MFlisar
Created December 20, 2021 08:16
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 MFlisar/9b3d8966ea1b9ecdf340fa2521c71f99 to your computer and use it in GitHub Desktop.
Save MFlisar/9b3d8966ea1b9ecdf340fa2521c71f99 to your computer and use it in GitHub Desktop.
Lumberjack - Filtering
// e.g. completely disable logs in debug
L.enabled = BuildConfig.DEBUG
// e.g. disable all tags that are not starting with "IMPORTANT_"
L.tagNameFilter = { it.startsWith("IMPORTANT_") }
// e.g. disable logs from any non app package name
L.packageNameFilter = { it.startsWith("com.my.package.name") }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment