kean / Pulse

Network logger for Apple platforms
https://pulselogger.com
MIT License
6.25k stars 296 forks source link

Ability to export logs programatically #203

Closed jostster closed 1 year ago

jostster commented 1 year ago

It would be a nice to have to allow the developer to create a button that says export logs that a user can tap and we export the logs with defined settings instead of giving the user access to the UI so they can export the logs. This helps make submitting logs with bug reports much simpler.

kean commented 1 year ago

Hey, have you tried using the new LoggerStore/export API from version 3.6.0?

jostster commented 1 year ago

Hey, have you tried using the new LoggerStore/export API from version 3.6.0?

I looked at the documentation for LoggerStore but didn't see an export. I will be sure to check again. Thank you! Edit: I'm not seeing it listed in https://kean-docs.github.io/pulse/documentation/pulse/loggerstore

kean commented 1 year ago

The docs have been updated: https://kean-docs.github.io/pulse/documentation/pulse/loggerstore/export(to:as:options:)