You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current Winston transport example gives the following error when run as-is (node 8.10, Winston 2.4.3)
/Users/reilly/Projects/mem/node_modules/winston/lib/winston/logger.js:481
var instance = created ? transport : (new (transport)(options));
^
TypeError: transport is not a constructor
at exports.Logger.Logger.add (/Users/reilly/Projects/mem/node_modules/winston/lib/winston/logger.js:481:41)
at Object.winston.(anonymous function) [as add] (/Users/reilly/Projects/mem/node_modules/winston/lib/winston.js:86:34)
at logLogDNAWinston (/Users/reilly/Projects/mem/tmp.js:100:11)
at Object.<anonymous> (/Users/reilly/Projects/mem/tmp.js:103:1)
I get the general idea from the code and the Winston docs, but a working example would be nice.
The text was updated successfully, but these errors were encountered:
The current Winston transport example gives the following error when run as-is (node 8.10, Winston 2.4.3)
I get the general idea from the code and the Winston docs, but a working example would be nice.
The text was updated successfully, but these errors were encountered: