Loggers.js 498 B

12345678910111213
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. /** A logger that does nothing when log messages are sent to it. */
  4. export class NullLogger {
  5. constructor() { }
  6. /** @inheritDoc */
  7. // eslint-disable-next-line
  8. log(_logLevel, _message) {
  9. }
  10. }
  11. /** The singleton instance of the {@link @microsoft/signalr.NullLogger}. */
  12. NullLogger.instance = new NullLogger();
  13. //# sourceMappingURL=Loggers.js.map