@divine/sysconsole
v2.1.1
Published
A pretty Console that optionally also sends the logs to a remote Syslog server
Downloads
42
Maintainers
Readme
The Divine Syslog Console
This is a pure JavaScript (or TypeScript, actually) Console
replacement for Node.js that sends all the log messages
to a remote syslog server via either UDP or TCP.
It's more or less rconsole-compatible.
How to use
You can instantiate the SysConsole
object manually, but what you probably want is this:
import { SysConsole } from '@divine/sysconsole';
declare var console : SysConsole;
SysConsole.replaceConsole({ loghost: 'localhost', facility: 'local0', title: 'MySweetApp', showFile: false, syslogTags: true, highestLevel: 'info' });