Have ideas to improve npm?Join in the discussion! ¬Ľ

    journald

    0.0.5¬†‚Äʬ†Public¬†‚Äʬ†Published

    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.

    This should normally be installed using [npm]

    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 -p7 --output=json-pretty
    

    LICENSE

    (c) 2012 Mark Theunissen

    MIT (EXPAT)

    Keywords

    none

    Install

    npm i journald

    DownloadsWeekly Downloads

    11

    Version

    0.0.5

    License

    none

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar