Loggers.js 630 B

1234567891011121314151617
  1. "use strict";
  2. // Licensed to the .NET Foundation under one or more agreements.
  3. // The .NET Foundation licenses this file to you under the MIT license.
  4. Object.defineProperty(exports, "__esModule", { value: true });
  5. exports.NullLogger = void 0;
  6. /** A logger that does nothing when log messages are sent to it. */
  7. class NullLogger {
  8. constructor() { }
  9. /** @inheritDoc */
  10. // eslint-disable-next-line
  11. log(_logLevel, _message) {
  12. }
  13. }
  14. exports.NullLogger = NullLogger;
  15. /** The singleton instance of the {@link @microsoft/signalr.NullLogger}. */
  16. NullLogger.instance = new NullLogger();
  17. //# sourceMappingURL=Loggers.js.map