node-test-bed-adapter
Version:
An adapter to connect a node.js application to the Test-bed's Common Information Space or Common Simulation Space.
22 lines (21 loc) • 769 B
text/typescript
import { TestBedAdapter } from '../test-bed-adapter.mjs';
import { ICanLog, LogLevel } from './index.mjs';
export interface IKafkaLoggerOptions {
adapter: TestBedAdapter;
/** Client id: id will be the key of each payload */
clientId: string;
/** When true (default), the key is a string instead of an EDXL distribution envelope. */
stringBasedKey: boolean;
}
/**
* Based on winston-k
* source: https://github.com/jackielihf/winston-k/blob/master/logger.js
*/
export declare class KafkaLogger implements ICanLog {
private adapter;
private id;
private isInitialized;
private stringBasedKey;
constructor(options: IKafkaLoggerOptions);
log(level: LogLevel, msg: string, callback: (err?: Error, result?: any) => void): void;
}