<commit_before>This is an a transport module for the winston logger [flatiron/winston](https://github.com/flatiron/winston) logging into [Logsene](http://www.sematext.com/logsene) by Sematext.

Winston-Logsene combines the flexibility of using the Winston logging framework with Logsene.
Create your free account and access token [here](https://apps.sematext.com/users-web/register.do).

## Usage

```

        var winston = require('winston');
        var Logsene = require('winston-logsene');
        var logger = new winston.Logger()
        logger.add (new Logsene({token: process.env.LOGSENE_TOKEN}))
        // use dynamic list of placeholders and parameters and any Object as Metadata
        // message placeholders work the same way as in util.format()
        logger.info ('Info Message')
        logger.info ('Info Message', {tags: ['info', 'test']})
        logger.info ("Info message no. %d logged to %s",1,'Logsene', {metadata: "test-log", count:1 , tags: ['test', 'info', 'winston']})
        logger.error ("Error message no. %d logged to %s",1,'Logsene', {metadata: "test-error", count:1, tags: ['test', 'info', 'winston']})
        logger.warning ("Warning message no. %d logged to %s",1,'Logsene', {metadata: "test-warning", count:1, tags: ['test', 'info', 'winston']})
        logger.debug ("Debug message no. %d logged to %s",1,'Logsene', {metadata: "test-debug", count:1})

```


## License

Apache 2, see LICENSE file<commit_msg>readme changes<commit_after>This is an a transport module for the winston logger [flatiron/winston](https://github.com/flatiron/winston) logging into [Logsene](http://www.sematext.com/logsene) by Sematext.

Winston-Logsene combines the flexibility of using the Winston logging framework with Logsene.
Create your free account and access token [here](https://apps.sematext.com/users-web/register.do).

## Usage

```js

        var winston = require('winston');
        var Logsene = require('winston-logsene');
        var logger = new winston.Logger()
        logger.add (new Logsene({token: process.env.LOGSENE_TOKEN}))
        // use dynamic list of placeholders and parameters and any Object as Metadata
        // message placeholders work the same way as in util.format()
        logger.info ('Info Message')
        logger.info ('Info Message', {tags: ['info', 'test']})
        logger.info ("Info message no. %d logged to %s",1,'Logsene', {metadata: "test-log", count:1 , tags: ['test', 'info', 'winston']})
        logger.error ("Error message no. %d logged to %s",1,'Logsene', {metadata: "test-error", count:1, tags: ['test', 'info', 'winston']})
        logger.warning ("Warning message no. %d logged to %s",1,'Logsene', {metadata: "test-warning", count:1, tags: ['test', 'info', 'winston']})
        logger.debug ("Debug message no. %d logged to %s",1,'Logsene', {metadata: "test-debug", count:1})

```


## License

Apache 2, see LICENSE file
{'fraction_non_alphanumeric': 0.15628227194492256, 'fraction_numerical': 0.006196213425129088, 'mean_word_length': 3.7796052631578947, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '6999090', 'n_tokens_mistral': 914, 'n_tokens_neox': 879, 'n_words': 287}