@uboness/homebridge-unifi-access
Version:
Homebridge Unifi Access Plugin
16 lines • 740 B
TypeScript
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