Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[fix] Was failing test 'winston.accept' with winston >= v0.5.6 (and possibly earlier). #2

Merged
merged 1 commit into from

2 participants

@forddg

node accept/winston.accept.js

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object [object Object] has no method 'on'
at [object Object].add (/path/to/node-logentries/node_modules/winston/lib/winston/logger.js:284:12)
at Object.add (/path/to/node-logentries/node_modules/winston/lib/winston.js:81:34)
at Logger.winston (/path/to/node-logentries/lib/logentries.js:268:13)
at Object. (/path/to/node-logentries/accept/winston.accept.js:10:5)
at Module._compile (module.js:402:26)
at Object..js (module.js:408:10)
at Module.load (module.js:334:31)
at Function._load (module.js:293:12)
at Array. (module.js:421:10)
at EventEmitter._tickCallback (node.js:126:26)

All tests pass using winston v0.5.6/7 and node v0.4.10.

@vilda vilda merged commit 702dad4 into logentries:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 26, 2011
  1. @forddg
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/logentries.js
View
4 lib/logentries.js
@@ -255,7 +255,9 @@ function Logger( opts ) {
self.winstonLogger = this
}
-
+
+ util.inherits(LogentriesLogger, winston.Transport)
+
LogentriesLogger.prototype.log = function (level, msg, meta, callback) {
var data = msg + (meta?' '+JSON.stringify(meta):'')
self.log(level,data)
Something went wrong with that request. Please try again.