MMWormhole icon indicating copy to clipboard operation
MMWormhole copied to clipboard

MMWormhole use for log NetworkExtension

Open guhan121 opened this issue 4 years ago • 2 comments

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 avatar Jul 23 '20 02:07 guhan121

@guhan121 Did you end up using this project for this use case? I have the same problem. Thanks

houmie avatar Feb 17 '22 14:02 houmie

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),

codingiran avatar Jun 27 '23 06:06 codingiran