kyze8439690 / logcatviewer

Android Logcat viewer for debug usage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Android Logcat viewer for debug usage

License:Apache License 2.0


Languages

Language:Java 100.0%