knxultimate
Version:
KNX IP protocol implementation for Node. This is the ENGINE of Node-Red KNX-Ultimate node.
23 lines (22 loc) • 962 B
TypeScript
/// <reference types="node" />
import winston, { Container, Logform, Logger, transport } from 'winston';
import { PassThrough } from 'stream';
export declare const logStream: PassThrough;
export interface KNXLogger extends Logger {
module: string;
}
export interface KNXLoggerContainer extends winston.Container {
loggers: Map<string, KNXLogger>;
}
export type LogLevel = 'disable' | 'error' | 'warn' | 'info' | 'debug' | 'trace';
export type KNXLoggerOptions = {
loglevel?: LogLevel;
setPrefix?: string;
};
export declare function setLogLevel(level: LogLevel): void;
export declare function customKNXFormat(moduleName: string): Logform.Format;
export declare function customTransports(moduleName: string): transport[];
export declare function setupLogger(container: Container, moduleName: string): KNXLogger;
export declare function module(moduleName: string): KNXLogger;
declare const _default: Map<string, KNXLogger>;
export default _default;