UNPKG

@uboness/homebridge-unifi-access

Version:
16 lines 740 B
import { Logging } from 'homebridge'; export type ILogger = Pick<Logging, 'debug' | 'info' | 'warn' | 'error'> & { getLogger(category: string, ...categories: string[]): ILogger; }; export declare class ContextLogger implements ILogger { private readonly logger; readonly categories: string[]; readonly context: string; constructor(logger: Omit<ILogger, 'getLogger'>, ...categories: string[]); debug(message: string, ...parameters: any[]): void; error(message: string, ...parameters: any[]): void; info(message: string, ...parameters: any[]): void; warn(message: string, ...parameters: any[]): void; getLogger(category: string, ...categories: string[]): ILogger; } //# sourceMappingURL=Logger.d.ts.map