Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516
  1. "use strict";
  2. var inspect = require("util").inspect;
  3. function log(response, request) {
  4. var str;
  5. str = `Request:\n${inspect(request)}\n\n`;
  6. str += `Response:\n${inspect(response)}\n\n`;
  7. /* istanbul ignore else: when this.logger is not a function, it can't be called */
  8. if (typeof this.logger === "function") {
  9. this.logger(str);
  10. }
  11. }
  12. module.exports = log;