Top "Winston" questions

A multi-transport async logging library for node.

Mock fs function with jest

First of all, I'm new to es6 and jest. I have a Logger class for instantiate winston and I would …

node.js unit-testing jestjs fs winston
Winston logging object

I use Winston for my backend logging I cannot log the object without using JSON.stringify which is annoying logger.…

node.js winston
winston: Attempt to write logs with no transports - using default logger

I followed a tutorial to set up winston (2.x) default logger in my express app. When updating to the current …

javascript node.js winston
I want to display the file Name in the log statement

For every logger statement with any level, I need to display the file name from where the log statement executed, …

node.js logging winston
NodeJS/Forever archive logs

I am using forever to run my node application. When I start forever I specify where to write the logs. …

node.js forever winston
get line number and filename for a log output

Is it possible to get the line number and file for each log output ? For example: var winston = require('winston'); …

node.js logging winston
NodeJS Express - Global Unique Request Id

Is it possible to define a unique request Id that is included in each log statement without handing the logger …

node.js express logging winston
How to log node errors with winston logger?

In my node application I use the Winstonjs logger. Today my application somehow seemed to freeze, but it failed to …

javascript node.js logging error-handling winston
can I change the color of log data in winston?

I happened to use bunyan to log the the data . I wanted the logs be printed with appropriate colors like …

node.js hapijs winston bunyan
How to flush winston logs?

I want to flush the winston logger before process.exit. process.on('uncaughtException', function(err){ logger.error('Fatal uncaught exception …

node.js winston