UNPKG

@eventmsg/core

Version:

EventMsgV3 TypeScript library - Core protocol implementation with transport abstraction

20 lines (19 loc) 664 B
import { LOG_NAMESPACES, LoggingConfig } from "../types/logger.js"; import { createConsola } from "consola/basic"; //#region src/internal/logger.d.ts declare let globalConsola: ReturnType<typeof createConsola>; /** * Configure global logging */ declare function configureLogging(config: LoggingConfig): void; /** * Get logger for a component */ declare function getLogger(namespace: keyof typeof LOG_NAMESPACES): ReturnType<typeof globalConsola.withTag>; /** * Simple hex dump for debugging */ declare function hexDump(data: Uint8Array, maxBytes?: number): string; //#endregion export { configureLogging, getLogger, hexDump }; //# sourceMappingURL=logger.d.ts.map