Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 643 Bytes

File metadata and controls

24 lines (16 loc) · 643 Bytes

Vilog

Fast logger for Node.js with pre-compiled layouts, colorized output, and built-in profiling.

import Vilog from 'vilog';

const log = new Vilog({ name: 'app' });

log.info('server started');
log.debug('user %d logged in', 42);

Features

  • Pre-compiled layouts with tokens ({%d}, {msg}, ...) for minimal runtime overhead.
  • Built-in profiling tokens {duration} and {uptime} with human-friendly units.
  • Flexible color styling for any token.
  • Custom levels with per-level layouts and render functions.
  • Silent mode with buffered flush for tests and batch logging.

Full documentation