kafka-ts
Version:
**KafkaTS** is a Apache Kafka client library for Node.js. It provides both a low-level API for communicating directly with the Apache Kafka cluster and high-level APIs for publishing and subscribing to Kafka topics.
10 lines (9 loc) • 425 B
TypeScript
export interface Logger {
debug: (message: string, metadata?: unknown) => void;
info: (message: string, metadata?: unknown) => void;
warn: (message: string, metadata?: unknown) => void;
error: (message: string, metadata?: unknown) => void;
}
export declare const jsonSerializer: (_: unknown, v: unknown) => unknown;
export declare let log: Logger;
export declare const setLogger: (newLogger: Logger) => void;