0.2.0 • Published 5 years ago
capacitor-native-log v0.2.0
capacitor-native-log
Installation:
npm i -S capacitor-native-log
Usage:
import 'capacitor-native-log';
import { Plugins } from '@capacitor/core';
const { CAPNativeLog } = Plugins;
CAPNativeLog.log({ level: 'info', message: 'Hello World!' });
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