Skip to content

A tool library for displaying logcat in applications

Notifications You must be signed in to change notification settings

itlgl/LogcatView

Repository files navigation

LogcatView

License Api Level Maven Central

A tool library for displaying logcat in applications

Quick Setup

1. Include library

Edit your build.gradle file and add below dependency:

dependencies {
    implementation 'com.itlgl.android:logcatview:(latestVersion)'
}

2. Configure activity xml

Default:

<com.itlgl.android.logcatview.LogcatView
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>

Filter specified tags:

<com.itlgl.android.logcatview.LogcatView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:filterTags="L System.out"/>

Custom logcat cmd,add -v time to ensure that the log color will not be confused:

<com.itlgl.android.logcatview.LogcatView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:customCmd="logcat System.out:V *:S -v time"/>

About

A tool library for displaying logcat in applications

Resources

Stars

Watchers

Forks

Packages

No packages published