/** * Structured error logging for observability * * Provides unified error logging with slug-based identification, structured * fields for metrics/tracing integration, and environment-aware formatting. */ import { VeryfrontError } from "./types.js"; export interface ErrorLogEntry { level: "error"; slug: string; category: string; title: string; detail?: string; suggestion?: string; status: number; docs: string; timestamp: string; context?: Record; } /** * Log a VeryfrontError with structured formatting * * In development: Human-readable multi-line format with colors * In production: Single-line JSON for log aggregation (Loki, etc.) * * @param error - The VeryfrontError to log * @param context - Additional context to include in logs */ export declare function logError(error: VeryfrontError, context?: Record): void; /** * Log an error with a custom message prefix * * Useful for adding operation context to error logs. * * @param message - Prefix message describing the operation * @param error - The VeryfrontError to log * @param context - Additional context to include */ export declare function logErrorWithMessage(message: string, error: VeryfrontError, context?: Record): void; //# sourceMappingURL=logging.d.ts.map