Skip to content

Instantly share code, notes, and snippets.

@aleyrizvi
Created September 10, 2019 13:58
Show Gist options
  • Save aleyrizvi/d19acbc418dcd4f172c334dc0ab239c6 to your computer and use it in GitHub Desktop.
Save aleyrizvi/d19acbc418dcd4f172c334dc0ab239c6 to your computer and use it in GitHub Desktop.
Winston-sms example
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