I have an electron application which is using node.js. I would like to use Winston for logging in the application. I've added winston to my package.json file, but when I run the build command for webpack I'm getting some warnings from the col...
In my node application I'm using winston module to store my application logs. We can store the the logs in two format one is json and the other one is string. While saving the log as string in winston I'm getting below log format.    2013-09-...
I followed a tutorial to set up winston (2.x) default logger in my express app. When updating to the current version of winston (3.0.0) I have a problem with adding the transports. I have followed the latest docs but still I get the notice in console...
I'm rethrowing here an error from Sequelize promise (Bluebird). In the first place, this was done to change error message, but as it appeared, this also produces more informative stack trace.  It is something like  sequelize.sync().catch(original...
In my node application I use the Winstonjs logger. Today my application somehow seemed to freeze, but it failed to log something. I stopped the application and ran it manually which showed me this error   ReferenceError: totalValue is not defined   I...
When I'm passing metadata through winston the shortcut winston.info method isn't passing along the metadata.  var winston = require('winston');  winston.info("winston with metadata", {cluster: "bar"}); winston.log("...
I have an express application, and there are some situations in which the whole node process will fail, mostly on ReferenceError.  I am wondering if there is a way to set up Winston to handle node crashing, and logging the issue that shows up in my c...
I'm reading through Winston's code base and there was a comment in their DerivedLogger class line 22 that says:     Create a new class derived logger for which the levels can be attached to the prototype of. This is a V8 optimization that is...
This is my winston logger -   var winston = require('winston')  var logger = new (winston.Logger)({   transports: [     new (winston.transports.File)({       // log which takes care of all the MAS scoring - node clusters and servers       fil...
I'm using winston.js in my nodejs project, what I'm looking for is, to output two different custom messages into different type of transport (console,file). console mode:  return `${timestamp} [${label}] ${level}: ${message}   file mode (in t...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.