Comparing version 0.0.1 to 0.1.0
@@ -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 | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4240
112
65