2. Depends
3. ToDo
When developing an Android application, it is often necessary to view system, service and other logs. RAD Studio IDE does not provide us with such a tool. Therefore, we had two options:
- Logcat is a command-line tool;
- Logcat window in Android Studio IDE.
The first option is a command line tool and it is not very convenient to analyze logs. The second option requires us to install the Android Studio IDE. And you must agree that installing Android Studio for the sake of just one Logcat window is a bit redundant.
That's why this project was born, which solves this problem - Android Logcat for RAD Studio extension. With this extension, you can analyze logs in the RAD Studio development environment almost as well as in Android Studio, without having to install the latter.
After installing the extension, you can find the tool in the menu: View->Tool Windows->Android Logcat
You can use the following filters:
Key | Description |
---|---|
pid: | filter by pid |
package: | package name contain strings |
tag: | log tag contains string |
message: | log message contains string |
level: | filter by min log level |
Add - to a key to exclude logs with the value (such as, "-tag:").
Add ~ to use regex (such as, "tag~:" and "-tag~:").
Terms with the same key commbine with OR "tag:foo tag:bar" means "foo OR bar".
Negated terms combine with AND "-tag:foo -tag:bar" means "!foo AND !bar"
You can combine keys: -level:i -package:libc tag:native
AndroidLogcat.mp4
The project depends on two third-party libraries:
- SVGIconImageList
- VirtualTree
You can install them from GetIt - library repository in RAD Studio
Define a limit on the number of stored messages in memory
Open Tools->GetIt Package Manager...
Type "SVGIconImageList" into the search bar
Click the "Install" button and follow the instructions
Type "VirtualTree" into the search bar and click the "Install" button and follow the instructions
Open the Logcat.dpk project.
In the "Projects" tool window, right-click on "Logcat.bpl" and click on "Install" in the menu that appears
After installing the extension, you can find the tool in the menu: View->Tool Windows->Android Logcat
If you find bugs or want to add features to the project, use GitHub's "Issues" and "Pull requests" tools.