UNPKG

logaro

Version:

Structured logging middleware for Express. Tracks request timing, IP, status, method, and endpoint. Supports colorized console and JSON log files.

7 lines (6 loc) 143 B
import { Request } from "express"; /** * @param error * @param req */ export declare const logError: (error: Error, req?: Request) => void;