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

transport is not a constructor error #22

Closed
anildigital opened this issue Jul 20, 2017 · 3 comments
Closed

transport is not a constructor error #22

anildigital opened this issue Jul 20, 2017 · 3 comments

Comments

@anildigital
Copy link

@anildigital anildigital commented Jul 20, 2017

terminated by SIGTERM
 TypeError: transport is not a constructor
     at Logger.add (project/appNode/node_modules/winston/lib/winston/logger.js:481:41)
     at Object.winston.(anonymous function) [as add] (project/appNode/node_modules/winston/lib/winston.js:86:34)
     at Object.<anonymous> (project/appNode/app/logger.coffee:5:9)
     at Object.<anonymous> (project/appNode/app/logger.coffee:1:1)
     at Module._compile (module.js:570:32)
     at Object.loadFile (project/appNode/node_modules/coffee-script/lib/coffee-script/register.js:16:19)
     at Module.load (project/appNode/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
     at tryModuleLoad (module.js:446:12)
     at Function.Module._load (module.js:438:3)
     at Module.require (module.js:497:17)
     at require (internal/module.js:20:19)

Using winston like

require 'winston-loggly-bulk'
LOGGLY_KEY = process.env.LOGGLY_KEY

winston.add winston.transports.Loggly,
token: LOGGLY_KEY
subdomain: process.env.LOGGLY_SUBDOMAIN  || "myapp"
tags: ["myapp-node", process.env.CONTEXT]
json:true```

I am using Node version `v6.11.1`
@mostlyjason
Copy link

@mostlyjason mostlyjason commented Jul 20, 2017

@Shwetajain148 is this related to #19?

@anildigital
Copy link
Author

@anildigital anildigital commented Jul 20, 2017

@mostlyjason
Copy link

@mostlyjason mostlyjason commented Jul 20, 2017

Ok closing this then

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.