{"library":"log-bundler","title":"log-bundler","description":"A JavaScript/TypeScript library that collects multiple log messages and emits them as a single JSON log line. Version 0.5.4 is the latest stable release; the project is pre-1.0.0 with documentation promised at 1.0.0. It simplifies structured logging by buffering logs and flushing them as a batch, ideal for reducing I/O in high-throughput Node.js applications. Simpler than full-featured frameworks like Winston or Pino, but limited in features and currently lacks comprehensive docs.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install log-bundler"],"cli":null},"imports":["import { LogBundler } from 'log-bundler'","import { createLogBundler } from 'log-bundler'","import type { LogBundlerOptions } from 'log-bundler'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { LogBundler } from 'log-bundler';\n\nconst bundler = new LogBundler({\n  batchSize: 10,\n  flushInterval: 1000,\n  level: 'info'\n});\n\nbundler.log('info', 'This is a log message', { userId: 123 });\nbundler.log('error', 'An error occurred', { errorCode: 500 });\n\n// Manually flush to write bundled logs\nbundler.flush();","lang":"typescript","description":"Show how to create a LogBundler, add individual logs, and flush them as a batch JSON log.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}