UNPKG

logkitten

Version:

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

20 lines 783 B
/// <reference types="node" /> /// <reference types="node" /> import { EventEmitter } from 'events'; import type { ChildProcess } from 'child_process'; import type { Entry, Emitter } from './types'; /** * LogkittenEmitter extends EventEmitter and provides an async .close([cb]) method * to programmatically stop the logging process and clean up resources. */ export declare class LogkittenEmitter<E extends Entry = Entry> extends EventEmitter implements Emitter<E> { private _closePromise?; private _loggingProcess; constructor(loggingProcess: ChildProcess); /** * Closes the logging process and emits 'close'. * Supports both callback and Promise API. */ close(cb?: (err?: Error) => void): Promise<void>; } //# sourceMappingURL=emitter.d.ts.map