Redux-logger-filter
Redux-logger-filter
is a helper module to provide filter function to redux-logger
.
You can configure Redux-logger
to log only certain actions.
Install
npm i -D redux-logger-filter
Usage
Use the predicate
parameter of the createLogger
function.
;;; // Set to log only 'INCREASE' and 'DECREASE'.const logger = ; const store = ;
Other Options
// You can pass it in array.const filterList = 'counter/INCREASE' 'counter/DECREASE'; const logger = ; // You can also put Action Creator directly.; const logger = ;const logger = ; // Action Objectsconst logger = ;*/
excludeFilter
You can also exclude certain actions.
;; const filter = ; const logger = ;
Author
BitYounjgae (bityoungjae@gmail.com)
License
MIT