winston-telegram
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -25,2 +25,5 @@ /* | ||
this.chatid = options.chatid; | ||
this.level = options.level || 'info'; | ||
this.unique = options.unique || false; | ||
this.silent = options.silent || false; | ||
}; | ||
@@ -48,5 +51,5 @@ | ||
var self = this; | ||
if (this.silent) { | ||
return callback && callback(null, true); | ||
} | ||
if (this.silent) return callback(null, true); | ||
if (this.unique && this.level != level) return callback(null, true); | ||
request({ | ||
@@ -53,0 +56,0 @@ url : 'https://api.telegram.org/bot'+this.token+'/sendMessage', |
{ | ||
"name": "winston-telegram", | ||
"description": "A Telegram transport for winston", | ||
"version": "0.1.0", | ||
"author": "Ivan Marban", | ||
"repository": { | ||
"type": "git", | ||
"url": "http://github.com/ivanmarban/winston-telegram.git" | ||
}, | ||
"keywords": ["logging", | ||
"sysadmin", | ||
"tools", | ||
"winston", | ||
"telegram", | ||
"bot"], | ||
"dependencies": { | ||
"request": "^2.65.0" | ||
}, | ||
"devDependencies": { | ||
"winston": "" | ||
}, | ||
"peerDependencies": { | ||
"winston": "", | ||
"vows": "" | ||
}, | ||
"main": "./lib/winston-telegram", | ||
"scripts": { "test": "vows test/*test.js --spec" }, | ||
"engines": { | ||
"node": ">= 0.10.0" | ||
}, | ||
"license": "MIT" | ||
} | ||
"name": "winston-telegram", | ||
"description": "A Telegram transport for winston", | ||
"version": "0.2.0", | ||
"author": "Ivan Marban", | ||
"repository": { | ||
"type": "git", | ||
"url": "http://github.com/ivanmarban/winston-telegram.git" | ||
}, | ||
"keywords": [ | ||
"logging", | ||
"sysadmin", | ||
"tools", | ||
"winston", | ||
"telegram", | ||
"bot" | ||
], | ||
"dependencies": { | ||
"request": "^2.69.0" | ||
}, | ||
"devDependencies": { | ||
"winston": "" | ||
}, | ||
"peerDependencies": { | ||
"winston": "", | ||
"vows": "" | ||
}, | ||
"main": "./lib/winston-telegram", | ||
"scripts": { | ||
"test": "vows test/*test.js --spec" | ||
}, | ||
"engines": { | ||
"node": ">= 0.10.0" | ||
}, | ||
"license": "MIT" | ||
} |
# winston-telegram | ||
[![NPM](https://nodei.co/npm/winston-telegram.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/winston-telegram/) | ||
A [Telegram][0] transport for [winston][1]. | ||
@@ -29,4 +31,8 @@ | ||
* __chatid:__ The chatid you want to send to. *[required]* | ||
* __level:__ Level of messages that this transport should log. *[optional]* *[default info]* | ||
* __unique:__ Whether to log only the declared level and none above. *[boolean]* *[optional]* | ||
* __silent:__ Whether to suppress output. *[boolean]* *[optional]* | ||
[0]: https://telegram.org/ | ||
[1]: https://github.com/flatiron/winston |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6219
95
37
Updatedrequest@^2.69.0