Created
September 10, 2019 13:58
-
-
Save aleyrizvi/d19acbc418dcd4f172c334dc0ab239c6 to your computer and use it in GitHub Desktop.
Winston-sms example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let winston = require('winston') | |
let winstonSms = require('winston-sms') | |
var logger = winston.CreateLogger({ | |
//Your custom configurations | |
// refer to https://github.com/winstonjs/winston#creating-your-own-logger | |
transports: [ | |
new winstonSms({ | |
username: 'your_nomado_username', | |
password: 'your_nomado_password', | |
to: [3725343433, 3228887000] | |
}) | |
] | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment