ILogger.js 1.5 KB

12345678910111213141516171819202122232425262728
  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.LogLevel = void 0;
  6. // These values are designed to match the ASP.NET Log Levels since that's the pattern we're emulating here.
  7. /** Indicates the severity of a log message.
  8. *
  9. * Log Levels are ordered in increasing severity. So `Debug` is more severe than `Trace`, etc.
  10. */
  11. var LogLevel;
  12. (function (LogLevel) {
  13. /** Log level for very low severity diagnostic messages. */
  14. LogLevel[LogLevel["Trace"] = 0] = "Trace";
  15. /** Log level for low severity diagnostic messages. */
  16. LogLevel[LogLevel["Debug"] = 1] = "Debug";
  17. /** Log level for informational diagnostic messages. */
  18. LogLevel[LogLevel["Information"] = 2] = "Information";
  19. /** Log level for diagnostic messages that indicate a non-fatal problem. */
  20. LogLevel[LogLevel["Warning"] = 3] = "Warning";
  21. /** Log level for diagnostic messages that indicate a failure in the current operation. */
  22. LogLevel[LogLevel["Error"] = 4] = "Error";
  23. /** Log level for diagnostic messages that indicate a failure that will terminate the entire application. */
  24. LogLevel[LogLevel["Critical"] = 5] = "Critical";
  25. /** The highest possible log level. Used when configuring logging to indicate that no log messages should be emitted. */
  26. LogLevel[LogLevel["None"] = 6] = "None";
  27. })(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
  28. //# sourceMappingURL=ILogger.js.map