ILogger.js 1.4 KB

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