Skip to content

LogStashHttpAppender

@tsed/logger-logstash-http

Usage

typescript
import { LogStashHttpAppender } from "@tsed/logger-logstash-http";

See /packages/logstash-http/src/types/LogStashHttpAppender.ts.

Overview

ts
class LogStashHttpAppender extends BaseAppender<LogStashHttpOptions> {
    build(): void;
    write(loggingEvent: LogEvent): void;
    send(bulk: Record<string, any>): Promise<this | undefined> | undefined;
    flush(): Promise<this | undefined>;
    serializeBulk(array: Array<Record<string, any> | string>): string;
    shutdown(): Promise<this | undefined>;
}

build

ts
build(): void;

write

ts
write(loggingEvent: LogEvent): void;

send

ts
send(bulk: Record<string, any>): Promise<this | undefined> | undefined;

flush

ts
flush(): Promise<this | undefined>;

serializeBulk

ts
serializeBulk(array: Array<Record<string, any> | string>): string;

shutdown

ts
shutdown(): Promise<this | undefined>;

Released under the MIT License.