@embrace-io/react-native-redux
Version:
Collects telemetry from dispatching actions with Redux
21 lines (20 loc) • 461 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const consoleStub = {
log: (..._) => { },
warn: (..._) => { },
error: (..._) => { },
info: (..._) => { },
trace: (..._) => { },
debug: (..._) => { },
table: () => { },
group: (_) => { },
groupCollapsed: (_) => { },
groupEnd: () => { },
};
exports.default = (debug) => {
if (debug) {
return console;
}
return consoleStub;
};