Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/holusion/node-logger
- Owner: Holusion
- License: mit
- Created: 2021-07-01T11:57:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T09:26:29.000Z (8 months ago)
- Last Synced: 2024-04-24T14:59:22.610Z (8 months ago)
- Language: JavaScript
- Size: 69.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-logger
Formated output for logger with prio-prefixTo 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