Gunsen

October 2018

Wrapper for Winston appending metadata to messages

JavaScript
Node.js

What is Gunsen?

Gunsen is a tiny wrapper for Winston, giving superpowers to any logger instance.

Motivation

Winston is a really good logger which perfectly fits my needs but lacks a feature other loggers have: being able to create sub-loggers. This wrapper exposes an additional child() method, allowing users to create a sub-logger appending metadata to messages.