🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

syslogger

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

syslogger

A sane syslog API

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

SysLogger

Build Status NPM version

A sane, simple API to blast things at syslog.

var SysLogger = require('syslogger');
var logger = new SysLogger({
  name: 'myApp',
  facility: 'user',
  address: '127.0.0.1',
  port: 514,
  type: 'BSD' // 'BSD', 'RFC3164' or 'RFC5424'
});

logger.log(severity, message);
// or
logger.notice(message);
logger.warn(message);
logger.emerg(message);

To choose between different formats, pass a value as the type option. See https://github.com/squeeks/glossy#producing about the formats.

Keywords

syslog

FAQs

Package last updated on 17 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts