GT2/Ejectable/node_modules/expo/build/logs/Logs.js

21 lines
569 B
JavaScript
Raw Normal View History

2021-08-16 00:14:59 +00:00
let _originalConsole;
export function enableExpoCliLogging() {
if (__DEV__) {
if (_originalConsole) {
return;
}
_originalConsole = global.console;
const RemoteConsole = require('./RemoteConsole');
global.console = RemoteConsole.createRemoteConsole(global.console);
}
}
export function disableExpoCliLogging() {
if (__DEV__) {
if (!_originalConsole) {
return;
}
global.console = _originalConsole;
_originalConsole = null;
}
}
//# sourceMappingURL=Logs.js.map