Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

syslogudp

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

syslogudp

Syslog UDP client.

  • 0.0.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
116
decreased by-7.2%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 17 Dec 2012

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc