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
16 lines (15 loc) • 369 B
TypeScript
import { Middleware } from "../types/index.js";
/**
* Logger Middleware
* Logs incoming requests with method, pathname, status, and execution time.
*
* @returns {Middleware} - A middleware function for logging HTTP requests.
*
* @example
* ```ts
* import { logger } from 'tezx';
*
* app.use(logger());
* ```
*/
export declare function logger(): Middleware;