-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.toml
30 lines (24 loc) · 1.06 KB
/
example.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# shell command you want to run
command = "node ~/Documents/script.js"
# OPTIONAL - output all the logs to a logfile
logfile = "out.log"
# excludeErrorKeywords is an array of keywords that you don't want to mark as errors
# example usage is if you have known errors you want to fail silently
excludeErrorKeywords = ["known error:"]
# includeErrorKeywords is an array of keywords which doesn't actually log a stderr message but
# want to be notified when something happens
# example usage is if you have a log statement which doesn't indicate an error, but you want to be alerted about it anyway
includeErrorKeywords = ["ERROR:"]
# what actions to take in the event of a notification, you can include 0..n number of actions
actions = ["gmail", "twilio"]
# gmail action
# gmail needs a configuration change to allow less secure apps https://myaccount.google.com/lesssecureapps
[gmail]
email = "email@gmail.com"
password = "password"
# twilio sms action configuration
[twilio]
accountSid = "abcd123"
authToken = "abcd123"
toPhoneNumber = "9541268755"
fromPhoneNumber = "96541356841"