@patrtorg/quis-quod-doloremque
v2.10.93
Published
[![ESLint](https://github.com/patrtorg/quis-quod-doloremque/actions/workflows/eslint.yml/badge.svg)](https://github.com/patrtorg/quis-quod-doloremque/actions/workflows/eslint.yml) [![Node.js CI](https://github.com/patrtorg/quis-quod-doloremque/actions/wor
Downloads
2,008
Maintainers
Keywords
Readme
@patrtorg/quis-quod-doloremque
A Pino v7+ transport to send events to Slack
Installation
npm install --save @patrtorg/quis-quod-doloremque
Usage
import pino from 'pino'
const logger = pino({
transport: {
target: '@patrtorg/quis-quod-doloremque',
level: 'info',
options: {
webhookUrl: 'https://hooks.slack.com/services/xxx/xxx/xxx',
channel: '#pino-log',
username: 'webhookbot',
icon_emoji: ':ghost:'
}
}
})
logger.info('test log!');
Reference
- https://getpino.io/#/docs/transports?id=writing-a-transport
- https://github.com/autotelic/pino-seq-transport
- https://github.com/technicallyjosh/pino-http-send