import type { Logger, LogLevel } from '@webpieces/core-util'; import type { Logger as WinstonBase } from 'winston'; /** * webpieces LogLevel → winston level name. webpieces `trace` has no native * winston counterpart, so it maps onto winston `silly` (the finest npm level); * both resolve to GCP severity DEBUG via LEVEL_TO_SEVERITY. */ export declare const LEVEL_TO_WINSTON: Record; /** * WinstonLogger - a webpieces {@link Logger} backed by a winston logger instance * (one per name, created as a winston child carrying `loggerName`). Context * enrichment is done by the shared winston formats (see format.ts), so this * wrapper only maps the 5 webpieces levels and spreads an optional Error into * `errName`/`errMessage`/`errStack` — matching the production-tested logger's behaviour. */ export declare class WinstonLogger implements Logger { private readonly winston; constructor(winston: WinstonBase); trace(message: string, err?: Error): void; debug(message: string, err?: Error): void; info(message: string, err?: Error): void; warn(message: string, err?: Error): void; error(message: string, err?: Error): void; private emit; }