Update index.js

This commit is contained in:
Vijay Sharma 2017-03-09 08:36:40 -05:00 committed by GitHub
parent 6e17a2bff8
commit e8fcac8533
1 changed files with 2 additions and 2 deletions

View File

@ -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;