Overview
MatLog is a free and open-source material-style log reader for Android based on CatLog.
It shows a scrolling (tailed) view of the Android "logcat" system log,hence the goofy name. It also allows you to record logs in real time, send logs via email,and filter using a variety of criteria.
MatLog 3 adds:
- Android Studio's key-value search - tag:, message:, package:,process:, level:, is:, age: and the rest, with &, | andbrackets - with the terms tinted in the box and completed as you type
- Find in log (Ctrl+F), which marks every occurrence and walks throughthem instead of hiding the lines that do not match
- Reading the log through root, Shizuku or READ_LOGS, whicheveris available, so most devices never see Android's log-access prompt
- An Auto theme that follows the system's light/dark setting
- Saving logs with no folder picker on any Android version
Download
Releases · AndnixSH/matlog
Material Logcat reader based on CatLog. Contribute to AndnixSH/matlog development by creating an account on GitHub.
FAQs
Taken from CatLog's FAQ:
Where are the logs saved?
No folder has to be picked first:- Android 10 and below: in /sdcard/matlog, as MatLog always did. Androidasks for the storage permission once.
- Android 11 and later: in /Documents/matlog/. Any app may save its ownfiles there without a permission, but it only sees the files it saveditself, so MatLog does not list logs from before a reinstall, or ones thatgot there some other way. They are still there for a file manager.
- Rooted, with the F-Droid build: in /sdcard/matlog. MatLog uses root togive itself all-files access, and then it sees every log there. (The GooglePlay build does not ask for that permission, which Play restricts.)
To see every log in a folder without root, or to keep logs somewhere else, goto Settings → Log folder → Choose a folder… and pick one; MatLog saves to amatlog folder inside it from then on. Pick Documents to keep using/Documents/matlog/ and see all the logs in it.
How does the search box work?
It takes Android Studio's logcat queries and means the same thing by them, soStudio's own reference is the documentation for it: Key-value search.tag:, message:, line:, package: and process: match a case-insensitivesubstring; tag~: matches a regular expression and tag=: the whole field,and a leading - negates any of those. level: matches that severity orworse, is: takes crash, stacktrace, firebase or a level name, age:takes 30s, 5m, 3h or 1d, and name: recalls a saved filter. A bareword is looked for anywhere in the line, so a pid or a clock time issearchable; quote it for a phrase. &, | and brackets combine terms. Keyterms are tinted as you type, and the box completes both the keys and theirvalues.
MatLog differs in three small ways: package:mine means MatLog itself, sincethere is no project; pid: is an extra; and package: and process: needroot or Shizuku to resolve names at all.
Why does a dialog ask for access to all device logs?
That prompt belongs to the READ_LOGS permission, which recent Androidreleases make you re-confirm every session. MatLog settles once per launch howit is allowed to read the log, in this order:- root - logcat runs through su, with no prompt.
- Shizuku - logcat runs with Shizuku's shell privileges, alsowith no prompt. If Shizuku is running but has not granted MatLog access,MatLog offers to ask for it.
- READ_LOGS - granted once over adb withadb shell pm grant com.pluscubed.matloglibre android.permission.READ_LOGS(com.pluscubed.matlog for the Play build), and then re-confirmed throughthat dialog.
I can't see any logs!
This problem typically shows up on custom ROMs. First off, try an alternative logging app, to verify thatthe problem is with your ROM and not MatLog.Next, see if your ROM offers system-wide settings to disable logging. Be sure to reboot after you change anything.
If that still doesn't work, you can contact the creator of your ROM to file a bug/RFE.
Attachments
Last edited: