MMWormhole
MMWormhole copied to clipboard
MMWormhole use for log NetworkExtension
I have a vpn app implemented via NetworkExtension. i use MMWormhole for Transmit message with app and Extension. but if app crash or user want feedback. i want get logs from NetworkExtension. so
can i send logs directly from Extension to app, and save logs to app log file?
because is read the code , i see writeMessageObject
is write messageObject
to a tempURL
tempURL is a file path,I'm worried about performance and frequency writes。
@guhan121 Did you end up using this project for this use case? I have the same problem. Thanks
Main app and NetworkExtension share the same AppGroup sandbox directory, maybe NetworkExtension direct write log to a file path in shared AppGroup , and main app can also read the same log file.
FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: YOUR_APPGROUP_ID),