would you please give me an instance to get logs from logd for specific tag and specific…
Jump to turn (6)
- 1would you please give me an instance to get logs from logd for specific tag and
- 2what if I only want to filter tag and log level?
- 3how can I compose the filter if I want the "tag" included in the output
- 4if the sentence 'how can I compose the filter if I want the “tag” included in th
- 5how can I make the name of apk included in the logcat output?
- 6怎么样能让logcat输出中包含apk的包名
- User
would you please give me an instance to get logs from logd for specific tag and specific applications?
- Assistant
To get logs from logd for a specific tag and application, you can use the following command in the terminal:
codeadb logcat -s <tag>:<priority> <application package name>For example, if you want to get logs for the "MyApp" application with a tag of "Network", you could use the following command:
codeadb logcat -s Network:D com.myapp.packageThis command will display all logs with a tag of "Network" and a priority of "Debug" or higher, that are generated by the "MyApp" application.
Note: The
<priority>value specifies the minimum level of logs to be displayed, which can be one of the following:V(Verbose),D(Debug),I(Info),W(Warning),E(Error), or (Fatal).