Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create copy / paste example #4

Open
rsweetland opened this issue Jul 10, 2018 · 0 comments
Open

Create copy / paste example #4

rsweetland opened this issue Jul 10, 2018 · 0 comments

Comments

@rsweetland
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant