Skip to content

A logger that logs exceptions and restart events to Slack

Notifications You must be signed in to change notification settings

benag/slack-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack-logger

Logs Exceptions and restart events to slack as well as a logger. This module exposes three functions: info, error and restart. You can pass it a logger like winston, the logger need to expose also an info and error functions for the slack-logger to be able to use it.

How to Install

npm install slack-logger

How to Use

slackLogger = require('slack-logger');
slackLogger.config({
   logger:logger,
   method:'slack',
   webhookUri: '*******************',
   enableMsg: true,
   devChannel: '#dev',
   prodChannel: '#production'
});

About

A logger that logs exceptions and restart events to Slack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published