For some user experience related stuff, I want to capture logs of only my App (not the whole logcat) and save them in a text file. I am using Kotlin for my app and it supports latest version of android.
I checked many solutions and answers on SO for this but many of them were written for older versions of Android and reading system logs is not possible as android.permission.READ_LOGS is only granted to system apps.
Saving Logcat to a text file in Android Device
Android Writing Logs to text File
I also checked some libraries, but they are not working on the latest versions of android. One of them is https://github.com/hypertrack/hyperlog-android#initialize
Also, does capturing our own App's logs from user's device violates Play store's policies or we can do it safely?