@hyper-fetch/core
Version:
Cache, Queue and Persist your requests no matter if you are online or offline!
22 lines • 1.03 kB
TypeScript
import { default as EventEmitter } from 'events';
import { ClientInstance } from '../../client';
import { LogLevel, LoggerOptionsType, LoggerType, LoggerMethods } from '..';
/**
* This class is used across the Hyper Fetch library to provide unified logging system with necessary setup per each client.
* We can set up the logging level based on available values. This manager enable to initialize the logging instance per individual module
* like Client, Request etc. Which can give you better feedback on the logging itself.
*/
export declare class LoggerManager {
private options?;
logger: LoggerType;
level: LogLevel;
modules: string[] | undefined;
emitter: EventEmitter;
private client;
constructor(options?: LoggerOptionsType | undefined);
setSeverity: (level: LogLevel) => void;
setModules: (modules: string[] | undefined) => void;
initialize: (client: Pick<ClientInstance, "debug">, module: string) => LoggerMethods;
private log;
}
//# sourceMappingURL=logger.manager.d.ts.map