@livy/logger
Version:
A Monolog-inspired logging library for Node.js
21 lines (20 loc) • 735 B
TypeScript
import { HandlerInterface } from '@livy/contracts/lib/handler-interface';
import { LogRecord } from '@livy/contracts/lib/log-record';
import { SyncLoggerInterface } from '@livy/contracts/lib/logger-interface';
import { AbstractLogger } from './abstract-logger';
/**
* A mixed sync/async logger implementation
*
* It executes asynchronous handlers but does not await their results nor does it
* respect their bubbling behavior or handle their errors
*/
export declare class MixedLogger extends AbstractLogger<HandlerInterface, void> implements SyncLoggerInterface {
/**
* @inheritdoc
*/
withName(name: string): MixedLogger;
/**
* @inheritdoc
*/
protected runHandlers(record: LogRecord): void;
}