@xanthous/log4js-to-slack
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

Slack Appender for log4js-node

npm install @xanthous/log4js-to-slack

Configuration

  • type - @xanthous/log4js-to-slack
  • url - string - your slack incomeWebhook url.
  • layout - object (optional, defaults to basicLayout) - the layout to use for the message (see layouts).

Example

log4js.configure({
  appenders: {
    alerts: {
      type: '@xanthous/log4js-to-slack',
      url: 'https://xxxxxx.xxx/xxx',
    }
  },
  categories: {
    default: { appenders: ['alerts'], level: 'error' }
  }
});

Package Sidebar

Install

npm i @xanthous/log4js-to-slack

Weekly Downloads

37

Version

1.2.0

License

Apache-2.0

Unpacked Size

15.4 kB

Total Files

8

Last publish

Collaborators

  • harchiko
  • lhr0909
  • necmttn
  • osmanmesutozcan