@livy/util
Version:
Common utilities for the Livy logger
21 lines (20 loc) • 632 B
TypeScript
import { FormatterInterface } from '@livy/contracts/lib/formatter-interface';
import { LogRecord } from '@livy/contracts/lib/log-record';
/**
* Implements the `formatBatch` part of `FormatterInterface`
* by concatenating individual formats with a newline character
*/
export declare abstract class AbstractBatchFormatter implements FormatterInterface {
/**
* A delimiter to join batch-formatted log records
*/
protected batchDelimiter: string;
/**
* @inheritdoc
*/
abstract format(record: LogRecord): string;
/**
* @inheritdoc
*/
formatBatch(records: LogRecord[]): string;
}