Skip to content

theothermattm/node-logging-examples

Repository files navigation

Node.js Logging Examples

A set of interesting configurations and comparisons for node.js logging frameworks.

To see example log output for various frameworks, this is running on ReplIt (use the "shell" button):

node index.js --help

Usage: index [options]

Options:
  -f --framework <framework>  logging framework name: bunyan, console, log4js, loglevel, pino, winston
  -p --perfTest [perfTest]    Run A Perf Test
  -h, --help                  display help for command
Example command: node index.js -f pino

Available frameworks: bunyan, console, log4js, loglevel, pino, winston

You can set NODE_ENV=development or production, LOG_LEVEL, LOG_TO_FILENAME as environment variables to see different behavior

To run a sample perf test;

./scripts/perf-test.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published