Top "Winston" questions

A multi-transport async logging library for node.

How do I change my node winston JSON output to be single line

When I create a nodejs winston console logger and set json:true, it always output JSON logs in multiline format. …

node.js winston
winston:how to change timestamp format

I am using winston to add log details in node.js, i used the following procedure to add the logs …

node.js winston
How to log JavaScript objects and arrays in winston as console.log does?

I was looking at top Node logging systems: npmlog, log4js, bunyan and winston and decided to use winston for …

javascript arrays node.js logging winston
Using Winston in typescript

I can't figure how to use the logging module Winston in typescript. I have an error when I try to …

typescript winston
How can I change the winston log format?

In my node application I'm using winston module to store my application logs. We can store the the logs in …

javascript node.js formatting winston
Disable winston logging when running unit tests?

Can Winston logging be selectively disabled when executing unit tests of a node module? Ideally, I'd like to have logging …

node.js unit-testing winston
How to Log Full Stack Trace with Winston 3?

My logger is set up like: const myFormat = printf(info => { return `${info.timestamp}: ${info.level}: ${info.message}: ${info.err}`; }); …

javascript node.js logging winston
How would a human read a json winston log file?

It seems nice for API's, scripts and what not. But reading a winston json stack trace is very hard with …

json node.js winston
Cannot find module 'winston'

I wrote a little module that uses winston to log stuff. I used sudo npm install -g winston (it is …

javascript node.js npm winston
Multiple log files with Winston?

We'd like to use Winston for our logging in Node.js. But, we can't figure out how to have two …

node.js logging flatiron.js winston