small-redux-logger

A simple redux logger that uses console.log

Usage no npm install needed!

<script type="module">
  import smallReduxLogger from 'https://cdn.skypack.dev/small-redux-logger';
</script>

README

Simple redux logger

A logger for redux that is very small and fast.

Usage

import { applyMiddleware, createStore } from 'redux';

import logger from 'small-redux-logger';
const store = createStore(
  reducer,
  applyMiddleware(logger())
)

Options

{
  logActions: true, // will log redux actions
  logState: true, // will log redux state
}

For a more feature complete alternative see redux-logger