Diljeet Kakkar
Diljeet Kakkar

Reputation: 1

logging in Reactjs and redux

Can any one tell me how to log each and every request in react js and redux on client side for logging my errors in a file and also logging component life cycle structure ?

Upvotes: 0

Views: 2575

Answers (1)

DKo
DKo

Reputation: 880

You can apply the redux-logger as a middleware when creating the store. You can wrap the dispatch to log the actions. Have a look at this tutorial:

https://egghead.io/lessons/javascript-redux-wrapping-dispatch-to-log-actions

Upvotes: 1

Related Questions