logcatviewer icon indicating copy to clipboard operation
logcatviewer copied to clipboard

Android Logcat viewer for debug usage

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