# simple-redux-logger

> Logs actions and state to the console on both server and desktop.

Latest version **1.1.2** (published 2017-10-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-redux-logger
pnpm add simple-redux-logger
yarn add simple-redux-logger
bun add simple-redux-logger
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2017-10-19 |
| First published | 2017-09-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Bogusz Przybyslawski |
| Maintainers | matrus2 |

## Links

- npm: https://www.npmjs.com/package/simple-redux-logger
- Repository: https://github.com/matrus2/simple-redux-logger
- Issues: https://github.com/matrus2/simple-redux-logger/issues
- npm.io page: https://npm.io/package/simple-redux-logger

## Recent versions

- 1.1.2 (latest) — 2017-10-19
- 1.1.1 — 2017-09-27
- 1.1.0 — 2017-09-27
- 1.0.3 — 2017-09-18
- 1.0.2 — 2017-09-15
- 1.0.1 — 2017-09-15
- 1.0.0 — 2017-09-15

## README

## SIMPLE REDUX LOGGER

Logs actions and state to the console on both server and desktop.

#### How to use?

```javascript
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from './reducers';
 
export default function (initialState = {}) {
  const middlewares = [thunk];
  if (process.env.NODE_ENV === 'development') {
    const logger = require('simple-redux-logger'); // eslint-disable-line global-require

    middlewares.push(logger());
  }


  return createStore(rootReducer, initialState, 
    applyMiddleware(...middlewares));
}
```  

#### Options

  `doStringify` - show entire state on server. Default is _true_ .If you would like to shrink the output set to _false_.  
  `doLogClient` - in case of using `redux-devtools-extension`, default _false_.   

Usage with options:  
```javascript
    middlewares.push(logger({ doStringify: false }));
```

### License

MIT

---
_Source: https://npm.io/package/simple-redux-logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
