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.

web.js 574B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const LOG_METHODS = ['error', 'warn', 'info', 'debug', 'trace', 'silent'];
  4. function getLogger(component) {
  5. return LOG_METHODS.reduce((acc, cur) => {
  6. const prop = cur;
  7. if (console[prop]) {
  8. acc[prop] = console[prop].bind(console, `${component}:`);
  9. }
  10. return acc;
  11. }, {});
  12. }
  13. exports.default = getLogger;
  14. getLogger.setLevel = () => { };
  15. getLogger.setLogLevelsConfig = () => { };
  16. getLogger.waitForBuffer = () => { };
  17. getLogger.clearLogger = () => { };