UNPKG

logkitten

Version:

Stream Android and iOS logs without Android Studio or Console.app, with programmatic Node.js API for log analysis.

20 lines (19 loc) 559 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.run = run; var _child_process = require("child_process"); var _errors = require("../errors"); function run({ deviceId = 'booted' }) { try { return (0, _child_process.spawn)('xcrun', ['simctl', 'spawn', deviceId, 'log', 'stream', '--type', 'log', '--level', 'debug', '--style', 'ndjson'], { stdio: 'pipe' }); } catch (error) { throw new _errors.CodeError(_errors.ERR_IOS_CANNOT_START_SYSLOG, error.message); } } //# sourceMappingURL=runner.js.map