superslacker
superslacker copied to clipboard
Node to Slack
How can I export the Node logs to Superslacker events? I tried many solutions without any luck; always node writes an error to file like this "node-stderr---supervisor-SVv3Av.log" in the /var/log/supervisor folder
[supervisord]
nodaemon=true
[program:node]
directory=/home/node/app
command=node app.js
autostart=true
autorestart=true
redirect_stderr=true
[eventlistener:superslacker]
command=superslacker --webhook="https://hooks.slack.com/services/xxxxxxxxxxxxxxxxxxxxxxxxx" --channel="#alert"
events=PROCESS_STATE,TICK_60
buffer_size=200
I get the supervisor error log to my slack channel but not the node log
This feature would be nuts