UNPKG

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

13 lines (12 loc) 425 B
import { COLORS } from "./colors.js"; export const loggerOutput = (level, message, ...args) => { const LEVEL_COLORS = { info: COLORS.blue, warn: COLORS.yellow, error: COLORS.red, debug: COLORS.cyan, success: COLORS.green, }; const levelText = `${LEVEL_COLORS[level]}[${level.toUpperCase()}]${COLORS.reset}`; console.log(` ${levelText} ${message}`, ...args?.flat()); };