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.

createMockLogger.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _constants = require("../constants");
  7. const createMockLogger = (onMessage, parentContext) => {
  8. // eslint-disable-next-line id-length, unicorn/prevent-abbreviations, no-unused-vars
  9. const log = (a, b, c, d, e, f, g, h, i, k) => {//
  10. };
  11. log.adopt = async routine => {
  12. return routine();
  13. }; // eslint-disable-next-line no-unused-vars
  14. log.child = context => {
  15. return createMockLogger(onMessage, parentContext);
  16. };
  17. log.getContext = () => {
  18. return {};
  19. };
  20. for (const logLevel of Object.keys(_constants.logLevels)) {
  21. // eslint-disable-next-line id-length, unicorn/prevent-abbreviations
  22. log[logLevel] = (a, b, c, d, e, f, g, h, i, k) => {
  23. return log.child({
  24. logLevel: _constants.logLevels[logLevel]
  25. })(a, b, c, d, e, f, g, h, i, k);
  26. };
  27. } // @see https://github.com/facebook/flow/issues/6705
  28. // $FlowFixMe
  29. return log;
  30. };
  31. var _default = createMockLogger;
  32. exports.default = _default;
  33. //# sourceMappingURL=createMockLogger.js.map