There is a module in the appstore where you get your logs into your app. See appstore here: https://appstore.home.mendix.com/link/app/159/CAPE-Groep-B.V./Logging-Module
You could check how they got them or get them into your app and expose a REST or SOAP.
Regards,
Ronald