mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-01-31 00:00:03 +08:00
14 lines
331 B
JavaScript
14 lines
331 B
JavaScript
exports.configure = driver => {
|
|
driver.on('status', info => {
|
|
console.log(info.cyan);
|
|
});
|
|
|
|
driver.on('command', (meth, path, data) => {
|
|
console.log(' > ' + meth.yellow, path.grey, data || '');
|
|
});
|
|
|
|
driver.on('http', (meth, path, data) => {
|
|
console.log(' > ' + meth.magenta, path, (data || '').grey);
|
|
});
|
|
};
|