UNPKG

@ngworker/lumberjack

Version:

Lumberjack is a versatile Angular logging library, specifically designed to be extended and customized

26 lines (25 loc) 820 B
import { LumberjackLogPayload } from '../logs/lumberjack-log-payload'; import { LumberjackLog } from '../logs/lumberjack.log'; import { LumberjackLogDriver } from './lumberjack-log-driver'; /** * A log driver error reported by Lumberjack. */ export interface LumberjackLogDriverError<TPayload extends LumberjackLogPayload | void = void> { /** * The text representation of the log passed to the driver at the time of * failure. */ readonly formattedLog: string; /** * The error thrown by the log driver at the time of failure. */ readonly error: unknown; /** * The log passed to the driver at the time of failure. */ readonly log: LumberjackLog<TPayload>; /** * The failing log driver. */ readonly logDriver: LumberjackLogDriver<TPayload>; }