@bugspotter/sdk
Version:
Professional bug reporting SDK with screenshots, session replay, and automatic error capture for web applications
29 lines (28 loc) • 870 B
TypeScript
/**
* Centralized logging utility for BugSpotter SDK
* Provides configurable logging with support for different log levels
*/
export type LogLevel = 'debug' | 'log' | 'warn' | 'error' | 'none';
export interface Logger {
debug(message: string, ...args: unknown[]): void;
log(message: string, ...args: unknown[]): void;
warn(message: string, ...args: unknown[]): void;
error(message: string, ...args: unknown[]): void;
}
export interface LoggerConfig {
enabled?: boolean;
level?: LogLevel;
prefix?: string;
}
/**
* Get the default logger instance
*/
export declare function getLogger(): Logger;
/**
* Configure the default logger
*/
export declare function configureLogger(config: LoggerConfig): void;
/**
* Create a new logger instance with custom configuration
*/
export declare function createLogger(config?: LoggerConfig): Logger;