UNPKG

@dataql/node

Version:

DataQL core SDK for unified data management with MongoDB and GraphQL - Production Multi-Cloud Ready

40 lines (39 loc) 1.01 kB
import { PluginLogger } from "./types.js"; /** * Logger implementation for DataQL plugins * * Provides structured logging with different levels and contextual information. * Each plugin gets its own logger instance with proper context. */ export declare class PluginLoggerImpl implements PluginLogger { private context; constructor(context?: string | Record<string, any>); /** * Log debug message */ debug(message: string, meta?: any): void; /** * Log info message */ info(message: string, meta?: any): void; /** * Log warning message */ warn(message: string, meta?: any): void; /** * Log error message */ error(message: string, meta?: any): void; /** * Create a child logger with additional context */ child(context: Record<string, any>): PluginLogger; /** * Private: Core logging method */ private log; /** * Private: Format log message */ private formatMessage; }