Skip to content

Commit

Permalink
port to node v0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
schamane committed Sep 19, 2011
1 parent 952559b commit d3c2014
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.0

* Port to 0.5.7 Node version

## 1.0.2

* Fixed MAIL log facility
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# Node-Syslog

v1.0.2
v1.1.0

This is an node module (add-on) to work with system log daemon on unix systems.
Module is tested with node.js v0.3.3 and metalog, syslog-ng 3.1.1.

Read Wiki "setMask" page for more information about how to use "setMask" functionality.


Current version is compatible to node 0.5.7 and higher version. For stable or older releases please use node-syslog v1.0.2

## Authors

* Nazar Kulyk
Expand Down
2 changes: 1 addition & 1 deletion node-syslog.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ init: SyslogWrapper.init,
log: SyslogWrapper.log,
setMask: SyslogWrapper.setMask,
close: SyslogWrapper.close,
version: '1.0.2',
version: '1.1.0',

/*
* facilities
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "node-syslog",
"version": "1.0.2",
"version": "1.1.0",
"directories": {
"lib": "./lib"
},
"main": "./node-syslog",
"engines": {
"node" : ">=0.4.0"
"node" : ">=0.5.7"
},
"description": "Node module to support sending messages to syslog daemon",
"author": "Nazar Kulyk <nasar.kulyk@googlemail.com>",
Expand Down
8 changes: 4 additions & 4 deletions syslog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,20 @@ static int EIO_AfterLog( eio_req *req) {

struct log_request *log_req = (struct log_request *)(req->data);

log_req->cb.Dispose(); // is this necessary?
free(log_req->msg);
log_req->cb.Dispose(); // is this necessary?
free(log_req->msg);
free(log_req);
return 0;
}

static int EIO_Log(eio_req *req) {
static void EIO_Log(eio_req *req) {
struct log_request *log_req = (struct log_request *)(req->data);
char *msg = log_req->msg;

syslog(log_req->log_level, "%s", msg);

req->result = 0;
return 0;
return;
}

Handle<Value>
Expand Down
2 changes: 1 addition & 1 deletion wscript
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ from os.path import exists

srcdir = '.'
blddir = 'build'
VERSION = '1.0.1'
VERSION = '1.1.0'

def set_options(opt):
opt.tool_options('compiler_cxx')
Expand Down

0 comments on commit d3c2014

Please sign in to comment.