UNPKG

@softchef/cdk-iot-device-management

Version:

IoT device management is composed of things, thing types, thing groups, jobs, files API services. The constructs can be used independently, that are based on full-managed service to create an API Gateway & Lambda function.

17 lines (12 loc) 389 B
"use strict"; var inspect = require("util").inspect; function log(response, request) { var str; str = `Request:\n${inspect(request)}\n\n`; str += `Response:\n${inspect(response)}\n\n`; /* istanbul ignore else: when this.logger is not a function, it can't be called */ if (typeof this.logger === "function") { this.logger(str); } } module.exports = log;