UNPKG

@loopkit/javascript

Version:

JavaScript SDK for LoopKit analytics platform

37 lines 891 B
import type { LoopKitConfig } from '../types/index.js'; /** * Logging utility for LoopKit SDK */ export declare class Logger { private config; constructor(config: LoopKitConfig); /** * Update configuration */ updateConfig(config: LoopKitConfig): void; /** * Log an error message */ error(message: string, data?: Record<string, any>): void; /** * Log a warning message */ warn(message: string, data?: Record<string, any>): void; /** * Log an info message */ info(message: string, data?: Record<string, any>): void; /** * Log a debug message */ debug(message: string, data?: Record<string, any>): void; /** * Internal logging method */ private log; /** * Check if we should log at the given level */ private shouldLog; } //# sourceMappingURL=Logger.d.ts.map