smppjs
Version:
Modern approach to smpp protocol.
17 lines • 498 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Logger = void 0;
class Logger {
constructor(socket, options) {
this.socket = socket;
this.options = options;
}
debug(message, object) {
const messageEmit = `${message} - ${object ? JSON.stringify(object) : '{}'}`;
if (this.options.debug) {
this.socket.emit('debug', messageEmit);
}
}
}
exports.Logger = Logger;
//# sourceMappingURL=logger.js.map