Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.09 KB

README.md

File metadata and controls

35 lines (26 loc) · 1.09 KB

LogcatViewer library

Feature:

  • Priority filter
  • Clear logcat
  • Export as file
  • Floating window

Integrate guide

  1. Clone this library as a project module, add module dependence.

  2. Add launch code in your code:

    • Start logcat viewer
    LogcatActivity.start(getContext())
    • Start logcat viewer with log exclude rule
    val logcatExcludeRules = listOf(
        Pattern.compile(".*]: processMotionEvent MotionEvent \\{ action=ACTION_.*"),
        Pattern.compile(".*]: dispatchPointerEvent handled=true, event=MotionEvent \\{ action=ACTION_.*")
    )
    LogcatActivity.start(getContext(), logcatExcludeRules)

Screenshot