Files
appium/sample-code/examples/node/helpers/logging.js
2014-06-09 14:32:23 +08:00

15 lines
396 B
JavaScript

"use strict";
exports.configure = function (driver) {
// See whats going on
driver.on('status', function (info) {
console.log(info.cyan);
});
driver.on('command', function (meth, path, data) {
console.log(' > ' + meth.yellow, path.grey, data || '');
});
driver.on('http', function (meth, path, data) {
console.log(' > ' + meth.magenta, path, (data || '').grey);
});
};