javaLuo / react-luo

React Automatically - 保持最新技术 react18 hooks router6 webpack5 babel7 antd4
https://isluo.com/work/pwa/
MIT License
312 stars 71 forks source link

是否添加日志模块呢 #7

Closed zhans1993 closed 5 years ago

zhans1993 commented 6 years ago

罗哥,我看到目前项目里没有加日志模块,如果想添加日志模块是通过express的中间件还是redux 中间件来写呢,哪个更简单点呢

javaLuo commented 6 years ago

通过redux中间件吧,可以使用redux-logger 我在store/index.js中加了redux-logger, 简单配置了一下。

不过如果正式打包不需要的话,要手动取消。 用于生产环境的BUG日志记录有logrocket,国内的有Fundebug,属于第3方日志服务。