superslacker icon indicating copy to clipboard operation
superslacker copied to clipboard

Node to Slack

Open ahmedalmulki opened this issue 1 year ago • 1 comments

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

ahmedalmulki avatar Jun 15 '23 13:06 ahmedalmulki

This feature would be nuts

astrooom avatar Aug 19 '23 23:08 astrooom