README
slack-webhook-logger
Send your application's logs to a Slack Webhook
slack-webhook-logger is essentially the same thing as sumologic-logger but with a few minor changes relating to Slack.
Prerequisites
- Node.js 8.x
Installation
npm install slack-webhook-logger
oryarn add slack-webhook-logger
Usage
Either a string or an object can be provided as a log
import { Logger } from 'slack-webhook-logger';
const logger = new Logger({
url: 'your slack webhook url',
});
logger.info('foo');
logger.warn({ some: 'object' });
logger.error('foo');
Development
yarn install
yarn run build