Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Display pretty Android and iOS logs without Android Studio or Console.app, with intuitive Command Line Interface.
Logkitty is a tool for reading Android logcat logs. It provides a simple and efficient way to filter and display log messages from Android devices, making it easier to debug and monitor applications.
Basic Logcat Reading
This feature allows you to start reading logcat logs from an Android device. The code sets up a logkitty reader and starts it, printing each log entry to the console.
const { logkitty, android } = require('logkitty');
const reader = logkitty();
reader.on('entry', entry => console.log(entry));
reader.start();
Filtering Logs
This feature allows you to filter logcat logs by specific tags. The code sets up a logkitty reader with a filter to only show logs tagged with 'MyApp'.
const { logkitty, android } = require('logkitty');
const reader = logkitty({ filter: [android.filters.byTag('MyApp')] });
reader.on('entry', entry => console.log(entry));
reader.start();
Custom Log Entry Formatting
This feature allows you to customize the format of log entries. The code sets up a logkitty reader and formats each log entry to display the tag and message.
const { logkitty, android } = require('logkitty');
const reader = logkitty();
reader.on('entry', entry => console.log(`${entry.tag}: ${entry.message}`));
reader.start();
adbkit-logcat is a Node.js library for reading Android logcat logs. It provides similar functionality to logkitty, allowing you to read and filter logcat logs. However, adbkit-logcat is part of the larger adbkit suite, which includes additional tools for interacting with Android devices.
Display pretty Android and iOS logs without Android Studio or Console.app, with intuitive Command Line Interface.
yarn global add logkitty
Or if you prefer having it locally:
yarn add -D logkitty
yarn logkitty --help
logkitty <platform> <command> [options]
You can inspect available platforms, command and options for a given platform by adding -h
at the end, for example:
logkitty -h # prints available platforms and global options
logkitty android -h # prints commands and options for android
logkitty android tag -h # prints tag command syntax and options for android
android
:
tag <tags...>
- Show logs with matching tags.app <appId>
- Show logs from application with given identifier.match <regexes...>
- Show logs matching given patterns (all regexes have flags g
and m
).custom <patterns...>
- Use custom patters supported by Logcat.all
- Show all logs.ios
:
tag <tags...>
- Show logs with matching tags (where tag is usually a name of the app).match <regexes...>
- Show logs matching given patterns (all regexes have flags g
and m
).all
- Show all logs.common:
-h, --help
- Display help-v, --version
- Display versionplatform android
:
tag
, app
, match
and all
commands support additional priority filtering options (sorted by priority):
-U, -u
- Unknown priority (lowest)-v, -v
- Verbose priority-D, -d
- Debug priority (default)-I, -i
- Info priority-W, -w
- Warn priority-E, -e
- Error priority-F, -f
- Fatal priority-S, -s
- Silent priority (highest)For example logkitty android all -W
will display all logs with priority warn, error and fatal.
platform ios
:
tag
, match
and all
commands support additional level filtering options:
-D, -d
- Debug level-I, -i
- Info level-E, -e
- Error levelShow all logs with tag ReactNativeJS
(and default priority - debug and above):
logkitty android tag ReactNativeJS
logkitty ios tag ReactNativeJS
Show all logs with priority info and above from application with identifier com.example.myApplication
:
logkitty android app com.example.myApplication -i
Show all logs matching /CodePush/gm
regex:
logkitty android match CodePush
logkitty ios match CodePush
Show all logs with priority error or fatal for Android and _error level for iOS:
logkitty android all -e
logkitty ios all -e
Show logs using custom patterns - silence all logs and display only the onces with tag my-tag
and priority debug and above:
logkitty android custom *:S my-tag:D
If your building a tool and want to use Node API, head over to Node API documentation.
FAQs
Display pretty Android and iOS logs without Android Studio or Console.app, with intuitive Command Line Interface.
The npm package logkitty receives a total of 1,573,679 weekly downloads. As such, logkitty popularity was classified as popular.
We found that logkitty demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.