aparajita / capacitor-logger-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

capacitor-logger-demo  GitHub version

This Ionic application provides a demo of all of the capacibilities of the capacitor-logger Capacitor plugin.

Installation

git clone https://github.com/aparajita/capacitor-logger-demo.git
cd capacitor-logger-demo
pnpm install  # npm install
pnpm build  # npm run build

Usage

Web

To launch the demo in a browser:

pnpm dev  # npm run dev

Once the demo is running, open the browser console to view the log output.

iOS

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.app and 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.

Android

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 Logcat tab and enter "Logger" in the search field.

About

License:MIT License


Languages

Language:CSS 30.5%Language:Vue 23.9%Language:Swift 12.5%Language:TypeScript 9.0%Language:JavaScript 8.0%Language:Java 6.1%Language:Ruby 5.8%Language:HTML 4.2%