capacitor-native-log
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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:

  1. Make sure your XCode scheme does not have the OS_ACTIVITY_MODE environment variable set to disable (Product > Scheme > Edit Scheme > Arguments > Environment Variables)

  2. In Console.app, make sure that the info and debug messages are visible: Action > Include Info Messages / Include Debug Messages

  3. 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
  1. 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

Readme

Keywords

Package Sidebar

Install

npm i capacitor-native-log

Weekly Downloads

4

Version

0.2.0

License

MIT

Unpacked Size

1.56 MB

Total Files

169

Last publish

Collaborators

  • mote-ou