Anyway to get "console.log" statements to show up in a log off an ios device?

I’m trying to debug an issue that is apparently only happening sometimes on an ios build. When I run the application via xcode the debugger has all of the statements from the “browser” as well as some other logging stuff. Is there any way to get that stuff off of a device not directly running off the debugger on xcode?

Some of the logging statements should tell me what is wrong but I am unable to get at them from the devices where the issue actually is.

I have used safari tech preview with a cable to the phone to see console logs (on a mac)