https://github.com/doumanash/plogcat
Pretty wrapper over logcat
https://github.com/doumanash/plogcat
logcat
Last synced: about 1 month ago
JSON representation
Pretty wrapper over logcat
- Host: GitHub
- URL: https://github.com/doumanash/plogcat
- Owner: DoumanAsh
- Created: 2021-04-16T06:22:22.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2025-02-26T03:59:16.000Z (3 months ago)
- Last Synced: 2025-02-26T04:29:35.952Z (3 months ago)
- Topics: logcat
- Language: Rust
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# plogcat (pretty logcat)
[](https://github.com/DoumanAsh/plogcat/actions/workflows/rust.yml)
Simple wrapper over logcat to provide easy way to interact with `adb logcat`
## Usage
```
plogcat 2.0.0
Colorful wrapper over adb logcat commandUSAGE: [OPTIONS]
OPTIONS:
-h, --help Prints this help information
-b, --buffer ... Load alternate log buffer.
--current Filter output by currently running application, if `app` is not set.
-c, --clear Clears logcat content before running.
--device Specifies to use USB connected device.
-d, --dump Dumps current log and exits.
--emulator Specifies to use TCP/IP connected device.
--time Whether to include time. Default: false.
--tag-width Specifies tag width. Default: 23.
-t, --tag ... List of tags to include into output.
-l, --level Specifies minimum Android log level to include. Default Verbose.
-L, --last Dumps logs prior to the last reboot.
--machine Strips output of color, making it more suitable for parsing.
-m, --max_count Print only provided number of lines and exits.
-s, --serial Specifies device's serial number.
-e, --regex ... Makes regex against which to match log lines.
--time-limit Prints within time range from specified time to the current time.
-i, --ignored-tag ... List of tags to exclude from output.ARGS:
Mode to use. Allowed modes: [adb, file]
```### adb command
```
adb: uses adb tool to collect logs from the connected deviceUSAGE: [OPTIONS] [app]
OPTIONS:
-h, --help Prints this help informationARGS:
[app] Package name or pid by which to filter logcat. If multiple apps found with the same name, it will output for every match
```### file command
Comparing to `adb` command, file extraction only provides limited filtering:
- Level limitation
- Tag filters```
file: Extracts log lines from dumped files. Only limited filtering is providedUSAGE: [OPTIONS] [files]...
OPTIONS:
-h, --help Prints this help informationARGS:
... One or more files to go through.
```