<commit_before>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][0]

Usage
=====

``` js
  var journald = require('journald')
  journald.send('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
==============
<commit_msg>Docs update<commit_after>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][0]

Usage
-----

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

``` js
  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
--------------

{'fraction_non_alphanumeric': 0.1276872964169381, 'fraction_numerical': 0.003908794788273616, 'mean_word_length': 3.8607594936708862, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1103072', 'n_tokens_mistral': 464, 'n_tokens_neox': 432, 'n_words': 175}