wonderpush-cordova-sdk
Version:
Mobile push notification delivery with the WonderPush service. The WonderPush Cordova SDK is compatible with iOS and Android.
17 lines (16 loc) • 452 B
JavaScript
class LogHelper {
constructor(context) {
this.context = context;
this.events = this.context.requireCordovaModule('cordova-common').events;
}
debug(...args) {
this.events.emit('verbose', ['[WonderPush]', ...args].join(' '));
}
warn(...args) {
this.events.emit('warn', ['[WonderPush]', ...args].join(' '));
}
log(...args) {
this.events.emit('log', ['[WonderPush]', ...args].join(' '));
}
}
module.exports = LogHelper;