Express Bunyan Logger

screenshot of Express Bunyan Logger
express

bunyan logger middleware for express

Overview

Express-bunyan-logger is an Express logger middleware powered by bunyan. It provides functionality to log requests and errors in an Express application. The project is open-source under the BSD License.

Features

  • Middleware: Used as a middleware in Express applications for logging.
  • Customizable Logging: Options to customize log formats, parse user-agents, and obfuscate specific values.
  • Child Logger: Attaches a child logger to each request object for better tracking and debugging.
  • Custom Log Level Handling: Functionality to translate status codes into log levels.

Summary

Express-bunyan-logger is a handy middleware for Express applications that allows for robust logging capabilities. With customizable features such as log format customization, user-agent parsing, and obfuscation options, it provides flexibility in logging requirements. Additionally, the ability to attach child loggers to request objects and customize log levels based on status codes make it a valuable tool for debugging and monitoring applications.

express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.