<commit_before># log4js-faye-appender

log4js-faye-appender is a custom appender for log4js capable of publishing log to a [faye server](http://faye.jcoglan.com/)

## Install

Automated installation is not yet available through npm, but simply put the log4js-faye-appender folder in node_modules and install the dependencies by running:

    cd log4js-faye-appender
    npm install

## Usage

Simply configure the appender with *url* and *channel* parameters:

    log4js.configure({
        appenders: [
            {type: 'log4js-faye-appender', url: 'http://localhost:8000', channel: '/faye'},
            {type: 'console'}
        ]
    });

When log4js fails to find a given appender in its own library, it attempts to find it in node_modules, which is why you do not need to explicitly require anything other than log4js.
This implies that, in order to work properly, **log4js-faye-appender itself must reside inside a node_modules directory**.
<commit_msg>Change installation instructions (module now published on npm)<commit_after># log4js-faye-appender

log4js-faye-appender is a custom appender for log4js capable of publishing log to a [faye server](http://faye.jcoglan.com/)

## Install

    npm install log4js-faye-appender

## Usage

Simply configure the appender with *url* and *channel* parameters:

    log4js.configure({
        appenders: [
            {type: 'log4js-faye-appender', url: 'http://localhost:8000', channel: '/faye'},
            {type: 'console'}
        ]
    });

When log4js fails to find a given appender in its own library, it attempts to find it in node_modules, which is why you do not need to explicitly require anything other than log4js.
This implies that, in order to work properly, **log4js-faye-appender itself must reside inside a node_modules directory**.

{'fraction_non_alphanumeric': 0.08748615725359911, 'fraction_numerical': 0.014950166112956811, 'mean_word_length': 3.6572164948453607, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5116173', 'n_tokens_mistral': 540, 'n_tokens_neox': 518, 'n_words': 210}