Socket
Socket
Sign inDemoInstall

chatty

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

chatty - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

4

lib/log.js

@@ -14,3 +14,4 @@

option: syslog.LOG_PID | syslog.LOG_ODELAY,
facility: syslog.LOG_LOCAL0
facility: syslog.LOG_LOCAL0,
console: false
};

@@ -25,2 +26,3 @@

var log = function (priority, data) {
if (options.console) return console.log(data);
syslog.init(options.ident, options.option, options.facility);

@@ -27,0 +29,0 @@ syslog.log(priority, options.ident + ': ' + data);

{
"name": "chatty",
"version": "0.0.1",
"version": "0.1.0",
"description": "Sexy syslogging for node.js",

@@ -5,0 +5,0 @@ "main": "lib/log.js",

@@ -56,9 +56,10 @@ # Chatty

Configure chatty, availiable options are: `ident`, `option` and `facility` ([syslog man page](http://linux.die.net/man/3/syslog)
Configure chatty, availiable options are: `ident`, `option` and `facility` ([syslog man page](http://linux.die.net/man/3/syslog))
An extra option `console`, may be set to true to log messages with console.log rather than syslog (useful for development/debugging)
#### chatty.log(priority, data)
Direct wrapper of syslog (you probably don't want this).
Direct wrapper of syslog (you probably DON'T want this).
`priority` must be a syslog.prority int
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