@afriex/core
Version:
HTTP client, configuration and typed errors for the Afriex Business API SDK
20 lines • 640 B
TypeScript
export declare const LogLevel: {
readonly DEBUG: 'debug';
readonly INFO: 'info';
readonly WARN: 'warn';
readonly ERROR: 'error';
readonly NONE: 'none';
};
export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
export declare class Logger {
private level;
private enabled;
constructor(level?: LogLevel, enabled?: boolean);
debug(message: string, data?: unknown): void;
info(message: string, data?: unknown): void;
warn(message: string, data?: unknown): void;
error(message: string, data?: unknown): void;
private log;
private shouldLog;
}
//# sourceMappingURL=logger.d.ts.map