saveLogcatToFile

suspend fun saveLogcatToFile(context: Context): String?

Saves the application's logcat output to a file in the app's file directory. This function streams the JSON output to avoid high memory usage and zips it as it goes.

Return

The absolute path of the saved log file, or null if an error occurred.

Parameters

context

The application context.