Skip to content

Commit

Permalink
Add 'name' to prototype in order to be able to remove/add logstash tr…
Browse files Browse the repository at this point in the history
…ansport from winston
  • Loading branch information
xsellier committed Jun 26, 2014
1 parent 2d5ae06 commit ddc4bb0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 25 deletions.
1 change: 1 addition & 0 deletions lib/winston-logstash.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ util.inherits(Logstash, winston.Transport);
//
winston.transports.Logstash = Logstash;

Logstash.prototype.name = 'logstash';

Logstash.prototype.log = function (level, msg, meta, callback) {
var self = this,
Expand Down
38 changes: 13 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "winston-logstash",
"version": "0.1.7",
"version": "0.1.8",
"description": "A Logstash transport for winston",
"main": "./lib/winston-logstash",
"homepage": "https://github.com/jaakkos/winston-logstash",
Expand Down Expand Up @@ -29,33 +29,21 @@
"tools"
],
"bugs": {
"url" : "https://github.com/jaakkos/winston-logstash/issues"
},
"author": {
"name": "Jaakko Suutarla",
"email": "jaakko@suutarla.com"
"url": "https://github.com/jaakkos/winston-logstash/issues"
},
"author": "Jaakko Suutarla <jaakko@suutarla.com>",
"license": "MIT",
"contributors": [
{
"name": "Jaakko Suutarla",
"email": "jaakko@suutarla.com"
},
{
"name": "Chris Saylor",
"email": "cjsaylor@gmail.com"
},
{
"name": "gwhitelaw"
},
{
"name": "Ivan Fraixedes"
}
"Jaakko Suutarla <jaakko@suutarla.com>",
"Chris Saylor <cjsaylor@gmail.com>",
"gwhitelaw",
"Ivan Fraixedes"
],
"maintainers": [
{
"name": "Jaakko Suutarla",
"email": "jaakko@suutarla.com"
}
]
"Jaakko Suutarla <jaakko@suutarla.com>"
],
"directories": {
"doc": "docs",
"test": "test"
}
}

0 comments on commit ddc4bb0

Please sign in to comment.