tezx
Version:
TezX is a high-performance, lightweight JavaScript framework designed for speed, scalability, and flexibility. It enables efficient routing, middleware management, and static file serving with minimal configuration. Fully compatible with Node.js, Deno, an
8 lines (7 loc) • 395 B
TypeScript
export type LogLevel = "info" | "warn" | "error" | "debug" | "success";
export declare const loggerOutput: (level: LogLevel, message: string, ...args: unknown[]) => void;
/**
* A universal logger function that measures and logs the processing time of an operation.
* @param label - A label to identify the operation being logged.
* @param callback - The operation to measure and execute.
*/