reusablejs / reusable

Simplest way to manage global state in React
235 stars 23 forks source link

Add logger #60

Open adamkleingit opened 5 years ago

adamkleingit commented 5 years ago

Configurable in Provider, for example: <ReusableProvider logger={NODE_ENV === 'development'}>

By default it's false

adamkleingit commented 5 years ago

Suggestions:

What should be logged:

Use colors/grouping if it makes it more aesthetic (see Redux-Logger for example): https://github.com/LogRocket/redux-logger

@morsdyce @yarindeoh opinions?

yarindeoh commented 5 years ago

@adamkleingit @morsdyce Agreed, it can be a good start point for debugging options