Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import con from '../config.js'
- console.log = (function(oriLogFunc) {
- return function() {
- //判断配置文件是否开启日志调试
- if (con.getLogDebug) {
- try {
- oriLogFunc.call(console, ...arguments);
- } catch (e) {
- console.error('console.log error', e);
- }
- }
- }
- })(console.log);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement