Skip to content

iketiunn/pino-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pino-discord

Install

$ npm i -g pino-discord

Get Start

$ echo '{"level":30,"time":1600408878699,"pid":61564,"hostname":"MacBookPro.local","msg":"example info"}' | pino-discord [options] [discord-webhook]
$ node ./app.js | pino-discord [options] [discord-webhook]
# Get error only
$ node ./app.js | pino-discord -l 50 [discord-webhook]

# Get warn, error only
$ node ./app.js | pino-discord -l 40 [discord-webhook]

Usage

Usage: pino-discord [options] [discord-webhook]

Pipe your pino log to discord through discord webhook

Options:
  -V, --version              output the version number
  -l, --level <level>        set log level pipe to webhook (default: "30")
  -m, --mentions <mentions>  set mentions, id split with ','
  -u, --username <bot>       set bot name (default: "pino-discord")
  -h, --help                 display help for command

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published