UNPKG

@ngworker/lumberjack

Version:

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

54 lines (53 loc) 2.1 kB
import { OnDestroy } from '@angular/core'; import { LumberjackLogDriver, LumberjackLogDriverLog, LumberjackLogPayload } from '@ngworker/lumberjack'; import * as i0 from "@angular/core"; /** * The HTTP driver transports logs to the configured web API log store using the * POST HTTP verb. * * It sends the formatted log and the log including the optional log payload. */ export declare class LumberjackHttpDriver<TPayload extends LumberjackLogPayload | void = void> implements LumberjackLogDriver<TPayload>, OnDestroy { #private; static readonly driverIdentifier = "LumberjackHttpDriver"; readonly config: import("../configuration/lumberjack-http-driver-internal.config").LumberjackHttpDriverInternalConfig; ngOnDestroy(): void; /** * Send critical log to the log store. * * @param param0 The log and its text representation. */ logCritical({ formattedLog, log }: LumberjackLogDriverLog<TPayload>): void; /** * Send debug log to the log store. * * @param param0 The log and its text representation. */ logDebug({ formattedLog, log }: LumberjackLogDriverLog<TPayload>): void; /** * Send error log to the log store. * * @param param0 The log and its text representation. */ logError({ formattedLog, log }: LumberjackLogDriverLog<TPayload>): void; /** * Send info log to the log store. * * @param param0 The log and its text representation. */ logInfo({ formattedLog, log }: LumberjackLogDriverLog<TPayload>): void; /** * Send trace log to the log store. * * @param param0 The log and its text representation. */ logTrace({ formattedLog, log }: LumberjackLogDriverLog<TPayload>): void; /** * Send warning log to the log store. * * @param param0 The log and its text representation. */ logWarning({ formattedLog, log }: LumberjackLogDriverLog<TPayload>): void; static ɵfac: i0.ɵɵFactoryDeclaration<LumberjackHttpDriver<any>, never>; static ɵprov: i0.ɵɵInjectableDeclaration<LumberjackHttpDriver<any>>; }