Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/holusion/node-logger

Formated output for logger with prio-prefix
https://github.com/holusion/node-logger

Last synced: 29 days ago
JSON representation

Formated output for logger with prio-prefix

Awesome Lists containing this project

README

        

# node-logger
Formated output for logger with prio-prefix

To be used with [logger](https://linux.die.net/man/1/logger) or [systemd-cat](https://www.freedesktop.org/software/systemd/man/latest/systemd-cat.html).

When used over a tty, the output is formated as with a normal `console.log`. However when piped, a prio-prefix is added to the output.

Example syntax :

## Types

Generate / update types using :

npx -p typescript tsc ./lib/*.js --declaration --allowJs --emitDeclarationOnly --outDir types