This package has been deprecated

Author message:

Use ios-log bundled in appium-ios-driver

appium-ios-log

1.2.3 • Public • Published

appium-ios-log

NPM version Downloads Dependency Status devDependency Status

Build Status Coverage Status

Note: Issue tracking for this repo has been disabled. Please use the main Appium issue tracker instead.

Access to iOS system, crash, and performance logs.

On real devices, realtime system log capture is through libimobiledevice's idevicesyslog. If this is not installed, the system falls back to deviceconsole, which is bundled with the Appium server.

Usage

The appium-ios-log package exports three classes, IOSLog, IOSCrashLog, and IOSPerformanceLog.

IOSLog

Instantiated with an options hash with the following parameters:

  • sim - simulator object
  • udid - unique identifier of real device
  • showLogs - whether or not to output logs into the log stream. Defaults to false

One of sim or udid is needed. In the case of running against a simulator, sim, and against a real device, udid.

IOSCrashLog

Instantiated with a directory in which the crash logs will be stored. Defaults to Library/Logs/DiagnosticReports in the home directory of the user under whom the device process is running.

IOSPerformanceLog

Instantiated with an instance of appium-remote-debugger and an optional number, which is the maximum number of performance log events to be saved. Any log events over this limit will cause the oldest event to be dropped. Defaults to 5000.

API

All three classes, IOSLog, IOSCrashLog, and IOSPerformanceLog, provide four async methods:

startCapture()

Start log capture.

stopCapture()

Stop log capture.

getLogs()

Retrieve the logs since the last time getLogs() was called.

getAllLogs()

Retrieve all the logs which have been captured.

Readme

Keywords

Package Sidebar

Install

npm i appium-ios-log

Weekly Downloads

40

Version

1.2.3

License

Apache-2.0

Last publish

Collaborators

  • jlipps
  • nick.mokhnach
  • kazucocoa
  • boneskull
  • moizjv
  • imurchie
  • bootstraponline
  • jonahss
  • sebv
  • scottdixon