This Ionic application provides a demo of all of the capacibilities of the capacitor-logger Capacitor plugin.
git clone https://github.com/aparajita/capacitor-logger-demo.git
cd capacitor-logger-demo
pnpm install # npm install
pnpm build # npm run buildTo launch the demo in a browser:
pnpm dev # npm run devOnce the demo is running, open the browser console to view the log output.
To launch the demo in Xcode:
pnpm ios.dev # npm run ios.dev- Once Xcode opens, select the device or simulator you wish to run the demo on and click Run.
- When the demo app opens, you can view the log output in the Xcode debug log.
- Open
Console.appand click on the simulator in the left sidebar. - Click "Start streaming" in the main view.
- Click in the Search field, enter "Logger", and hit Return.
If "Use syslog" is off in the demo, you will see log output only in the Xcode debug log. If "Use syslog" is on, you will see log output in the Xcode debug log and in Console.app.
Note: Debug log messages from a simulator will not appear in
Console.app.
To launch the demo in Android Studio:
pnpm android.dev # npm run ios.dev- Once Android Studio opens, select the device or simulator you wish to run the demo on and click Run.
- When the demo app opens, open the
Logcattab and enter "Logger" in the search field.