@grow-codes/graylog - v0.1.1
    Preparing search index...

    Interface LogQueryClient

    Reads logs back from the service (SPEC §4). Services without a query API throw UnsupportedError from every method.

    interface LogQueryClient {
        listLabels(): Promise<string[]>;
        listStreams(): Promise<string[]>;
        search(query: string, opts?: LogSearchOptions): Promise<LogSearchResult>;
        tail(
            query: string,
            onRecord: (record: LogRecord) => void,
            opts?: TailOptions,
        ): TailHandle;
        waitForLog(query: string, opts?: WaitForLogOptions): Promise<LogRecord>;
    }

    Implemented by

    Index