capacitor-native-log
Installation:
npm i -S capacitor-native-log
Usage:
;; const CAPNativeLog = Plugins; CAPNativeLog;
Notes:
-
Make sure your XCode scheme does not have the
OS_ACTIVITY_MODE
environment variable set todisable
(Product > Scheme > Edit Scheme > Arguments > Environment Variables) -
In Console.app, make sure that the info and debug messages are visible: Action > Include Info Messages / Include Debug Messages
-
If you're still not seeing the messages, try ensuring they're enabled for your app:
sudo log config --subsystem your.bundle-id --mode level:debug
- If you want to persist the messages instead of them simply remaining in memory:
sudo log config --subsystem your.bundle-id --mode level:debug,persist:debug