@divine/sysconsole
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

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' });

/@divine/sysconsole/

    Package Sidebar

    Install

    npm i @divine/sysconsole

    Weekly Downloads

    8

    Version

    2.1.1

    License

    Apache-2.0

    Unpacked Size

    57.5 kB

    Total Files

    8

    Last publish

    Collaborators

    • leviticus