@ngworker/lumberjack
Version:
Lumberjack is a versatile Angular logging library, specifically designed to be extended and customized
52 lines (51 loc) • 2 kB
TypeScript
import { LumberjackLogDriver, LumberjackLogDriverLog, LumberjackLogPayload } from '@ngworker/lumberjack';
import * as i0 from "@angular/core";
/**
* The console driver outputs logs to the browser console.
*
* It forwards the formatted log and the optional log payload to the relevant
* method of the browser console API.
*/
export declare class LumberjackConsoleDriver<TPayload extends LumberjackLogPayload | void = void> implements LumberjackLogDriver<TPayload> {
#private;
static readonly driverIdentifier = "LumberjackConsoleDriver";
readonly config: import("@ngworker/lumberjack").LumberjackLogDriverConfig;
/**
* Output console error.
*
* @param param0 The log and its text representation.
*/
logCritical({ formattedLog, log: { payload } }: LumberjackLogDriverLog<TPayload>): void;
/**
* Output console debug message.
*
* @param param0 The log and its text representation.
*/
logDebug({ formattedLog, log: { payload } }: LumberjackLogDriverLog<TPayload>): void;
/**
* Output console error.
*
* @param param0 The log and its text representation.
*/
logError({ formattedLog, log: { payload } }: LumberjackLogDriverLog<TPayload>): void;
/**
* Output console info.
*
* @param param0 The log and its text representation.
*/
logInfo({ formattedLog, log: { payload } }: LumberjackLogDriverLog<TPayload>): void;
/**
* Output console trace.
*
* @param param0 The log and its text representation.
*/
logTrace({ formattedLog, log: { payload } }: LumberjackLogDriverLog<TPayload>): void;
/**
* Output console warning.
*
* @param param0 The log and its text representation.
*/
logWarning({ formattedLog, log: { payload } }: LumberjackLogDriverLog<TPayload>): void;
static ɵfac: i0.ɵɵFactoryDeclaration<LumberjackConsoleDriver<any>, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<LumberjackConsoleDriver<any>>;
}