UNPKG

kliedz

Version:

Dead-simple, stateless logging utility for JavaScript and TypeScript. Pure functions. No dependencies. Just log.

11 lines (8 loc) 248 B
import type { LogLevel } from "./log_level.js"; export type Formatter = (config: FormatterConfig) => string; export type FormatterConfig = { level: LogLevel; args: readonly unknown[]; withTimestamp?: boolean; prefixBuilder?: () => string; };