@livy/logger
Version:
A Monolog-inspired logging library for Node.js
20 lines (19 loc) • 758 B
TypeScript
import { SyncHandlerInterface } from '@livy/contracts/lib/handler-interface';
import { LogRecord } from '@livy/contracts/lib/log-record';
import { SyncLoggerInterface } from '@livy/contracts/lib/logger-interface';
import { AbstractLogger, LoggerOptions } from './abstract-logger';
/**
* A synchrous logger implementation which throws
* on any attempt to add asynchronous functionality
*/
export declare class SyncLogger extends AbstractLogger<SyncHandlerInterface, void> implements SyncLoggerInterface {
constructor(name: string, options?: Partial<LoggerOptions<SyncHandlerInterface>>);
/**
* @inheritdoc
*/
withName(name: string): SyncLogger;
/**
* @inheritdoc
*/
protected runHandlers(record: LogRecord): void;
}