@quartal/bridge-client
Version:
Universal client library for embedding applications with URL-configurable transport support (iframe, postMessage) and framework adapters for Angular and Vue
24 lines • 879 B
TypeScript
export interface LoggerConfig {
debug: boolean;
trace: boolean;
appPrefix: string;
instanceId: string;
}
export declare class QuartalLogger {
private config;
private static instanceCounter;
constructor(config?: Partial<LoggerConfig>);
private formatMessage;
private shouldLog;
debug(message: string, ...args: any[]): void;
trace(message: string, ...args: any[]): void;
info(message: string, ...args: any[]): void;
warn(message: string, ...args: any[]): void;
error(message: string, error?: Error, ...args: any[]): void;
log(message: string, ...args: any[]): void;
updateConfig(newConfig: Partial<LoggerConfig>): void;
getConfig(): LoggerConfig;
}
export declare function getGlobalLogger(): QuartalLogger;
export declare function setGlobalLogger(logger: QuartalLogger): void;
//# sourceMappingURL=logger.d.ts.map