UNPKG

pm2-slack-monitor

Version:

A CLI tool to monitor PM2 processes and send error logs to individual Slack channels via webhook.

14 lines (11 loc) 245 B
const axios = require('axios'); async function send(message, webhook) { try { await axios.post(webhook, { text: message }); } catch (error) { console.error('Slack error:', error.message); } } module.exports = { send };