Socket
Socket
Sign inDemoInstall

syslogudp

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    syslogudp

Syslog UDP client.


Version published
Weekly downloads
194
decreased by-24.81%
Maintainers
1
Install size
4.60 kB
Created
Weekly downloads
 

Readme

Source

NodeSyslogUDP

Syslog client for Node using UDP Heavily based on the node-syslog repo by cloudhead.

installation

npm install syslogudp

synopsis

var syslog = require('syslog');
var logger = syslog.createClient(514, 'localhost');

logger.info("ping!");
logger.log("Danger Wil Robinson!",logger.LOG_WARNING, callback)

logger.close(); // explicitly close the socket

A call to callback sends two parameters - an error object and a string message.

log levels

In increasing order of severity:

  • debug
  • info
  • notice
  • warning
  • error
  • crit
  • alert
  • emerg

These are available as methods on Client, ex: logger.crit().

You may also call the log method, and pass the level as the 2nd argument:

logger.log('fnord!', syslog.LOG_CRIT);

The default level is info.

references

Aside from the repo noted above, this node documentation was very helpful in getting this up and running.

Keywords

FAQs

Last updated on 17 Dec 2012

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc