Skip to content
This repository

V8 engine extension for Node allowing native interaction with systemd and its journal

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib Upcasing additional keys, to prevent confusion of 'lost' key/values. September 04, 2013
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 binding.gyp
Octocat-spinner-32 package.json
Octocat-spinner-32 test.js
README.md

node-systemd

Node.js module for native access to the journald facilities in recent versions of systemd. In particular, this capability includes passing key/value pairs as fields that journald can use for filtering.

Also includes a plugin for winston

Usage

Very basic (see test.js for more detailed example):

  var journald = require('journald').Log;
  journald.log('MESSAGE=hello world', 'ARG1=first_argument', 'ARG2=second_argument');

Developing

Install node-gyp to build the extension:

sudo npm install -g node-gyp

Use npm to build the extension:

npm install

Or, build the C++ extension manually:

node-gyp configure && node-gyp build

Run test app:

node test.js

Viewing Output

Quick way to view output with all fields as it comes in:

sudo journalctl -f --output=json

LICENSE

(c) 2012 Mark Theunissen

MIT (EXPAT)

Something went wrong with that request. Please try again.