umair13adil / RxLogs

An Android & Kotlin Reactive Advanced Logging Framework.
12 stars 6 forks source link

Provide a snippet to export logs correctly #8

Closed shubyaa closed 1 year ago

shubyaa commented 1 year ago

I have been using this library in my Kotlin application, I want those logs to be exported. Can you please show be the correct way to use exportAllDataLogs() function to export it into zip. I see that the function is of type Observable, a guidance for such method invocation would be helpful, thanks!!

shubyaa commented 1 year ago

I figured it somehow, please correct me if this code is implemented in a wrong way.

PLog.exportLogsForType(ExportType.TODAY).subscribe({ Log.i("test", "onNext of export $it") }, { Log.i("test", "error occurred on export") it.printStackTrace() })