<commit_before>logstar
================

[![Travis Status][https://api.travis-ci.org/DispatchMe/logstar.svg]](https://travis-ci.org/DispatchMe/logstar)
[![devDependency Status](https://david-dm.org/dispatchme/logstar/dev-status.svg)](https://david-dm.org/dispatchme/logstar)
[![Dependency Status](https://david-dm.org/dispatchme/logstar.svg)](https://david-dm.org/dispatchme/logstar)

> Simple, opinionated, isomorphic logging.

It uses winston on the server and `console.log` on the client. It supports multiple arguments. If you have LOGGLY environment variables set, it will auto-configure the winston loggly transport.

#### API

* `Logstar.debug`
* `Logstar.info`
* `Logstar.warn`: Prioritize taking action.
* `Logstar.error`: Take action soon.
* `Logstar.fatal`: Take action IMMEDIATELY!!!!
* [SERVER] `Logstar.tags`: Include these tags.
* [SERVER] `Logstar.winstonInstance`

Example:
```js
  import { debug, info, fatal, tags } from 'logstar';
  tags('system', 'integration');
  debug('My mood', ['need', 'more', 'coffee']);
  info({ temperature: -10 });
  fatal('Sound the alarms', { weather: 'hail' }, new Error('Too cold'));
  info('more', 'logs');
  tags();
```

```js<commit_msg>Fix readme status badge<commit_after>logstar
================

[![Travis Status](https://api.travis-ci.org/DispatchMe/logstar.svg)](https://travis-ci.org/DispatchMe/logstar)
[![devDependency Status](https://david-dm.org/dispatchme/logstar/dev-status.svg)](https://david-dm.org/dispatchme/logstar)
[![Dependency Status](https://david-dm.org/dispatchme/logstar.svg)](https://david-dm.org/dispatchme/logstar)

> Simple, opinionated, isomorphic logging.

It uses winston on the server and `console.log` on the client. It supports multiple arguments. If you have LOGGLY environment variables set, it will auto-configure the winston loggly transport.

#### API

* `Logstar.debug`
* `Logstar.info`
* `Logstar.warn`: Prioritize taking action.
* `Logstar.error`: Take action soon.
* `Logstar.fatal`: Take action IMMEDIATELY!!!!
* [SERVER] `Logstar.tags`: Include these tags.
* [SERVER] `Logstar.winstonInstance`

Example:
```js
  import { debug, info, fatal, tags } from 'logstar';
  tags('system', 'integration');
  debug('My mood', ['need', 'more', 'coffee']);
  info({ temperature: -10 });
  fatal('Sound the alarms', { weather: 'hail' }, new Error('Too cold'));
  info('more', 'logs');
  tags();
```

```js
{'fraction_non_alphanumeric': 0.19147157190635453, 'fraction_numerical': 0.0016722408026755853, 'mean_word_length': 5.2973684210526315, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 12, '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': '1128364', 'n_tokens_mistral': 806, 'n_tokens_neox': 779, 'n_words': 188}