#LogTape 2.2.0 is out!
The headline is two new packages:
@logtape/lint adds lint rules for ESLint v8/v9 (flat config), Oxlint, and Deno Lint that catch common logging mistakes before they reach production: template literal interpolation in message arguments, eager property evaluation where lazy is needed, unawaited async log callbacks, and missing meta sink configuration.
@logtape/testing gives you createLogRecorder() and domain-aware assertion helpers, replacing the hand-rolled array-sink boilerplate that every project ends up writing.
Other highlights:
-
context: trueon Express/Hono/Koa/Elysia middleware handles request ID generation,x-request-idheader propagation, and implicit context. One option instead of several moving parts. -
Seven performance optimizations on the enabled-logging hot path
-
New logtape.org website
Full release notes: https://github.com/dahlia/logtape/discussions/179
#JavaScript #TypeScript #Deno #Node #NodeJS #Bun #logging #opensource
github.com
LogTape 2.2.0: Lint rules, testing utilities, and request context Β· dahlia/logtape Β· Discussion #179
LogTape is a logging library for JavaScript and TypeScript that works across Deno, Node.js, Bun, and browsers. It's built around structured logging, has zero dependencies, and is designed to work a...
