Update index.js
This commit is contained in:
parent
6e17a2bff8
commit
e8fcac8533
4
index.js
4
index.js
|
@ -114,14 +114,14 @@ class TestFairy {
|
|||
* Remote logging, use log as you would use console.log. These logs will be sent to the server.
|
||||
*/
|
||||
static log(message) {
|
||||
TestFairyBridge.log(message);
|
||||
TestFairyBridge.log(JSON.stringify(message));
|
||||
}
|
||||
}
|
||||
|
||||
var _testfairyConsoleLog = console.log;
|
||||
console.log = function(message) {
|
||||
_testfairyConsoleLog(message);
|
||||
TestFairy.log(JSON.stringify(message));
|
||||
TestFairy.log(message);
|
||||
}
|
||||
|
||||
module.exports = TestFairy;
|
||||
|
|
Loading…
Reference in New Issue