ILogger.js 1.5 KB

123456789101112131415161718192021222324252627
  1. "use strict";
  2. // Copyright (c) .NET Foundation. All rights reserved.
  3. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
  4. Object.defineProperty(exports, "__esModule", { value: true });
  5. // These values are designed to match the ASP.NET Log Levels since that's the pattern we're emulating here.
  6. /** Indicates the severity of a log message.
  7. *
  8. * Log Levels are ordered in increasing severity. So `Debug` is more severe than `Trace`, etc.
  9. */
  10. var LogLevel;
  11. (function (LogLevel) {
  12. /** Log level for very low severity diagnostic messages. */
  13. LogLevel[LogLevel["Trace"] = 0] = "Trace";
  14. /** Log level for low severity diagnostic messages. */
  15. LogLevel[LogLevel["Debug"] = 1] = "Debug";
  16. /** Log level for informational diagnostic messages. */
  17. LogLevel[LogLevel["Information"] = 2] = "Information";
  18. /** Log level for diagnostic messages that indicate a non-fatal problem. */
  19. LogLevel[LogLevel["Warning"] = 3] = "Warning";
  20. /** Log level for diagnostic messages that indicate a failure in the current operation. */
  21. LogLevel[LogLevel["Error"] = 4] = "Error";
  22. /** Log level for diagnostic messages that indicate a failure that will terminate the entire application. */
  23. LogLevel[LogLevel["Critical"] = 5] = "Critical";
  24. /** The highest possible log level. Used when configuring logging to indicate that no log messages should be emitted. */
  25. LogLevel[LogLevel["None"] = 6] = "None";
  26. })(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
  27. //# sourceMappingURL=ILogger.js.map