UNPKG

2 kBJavaScriptView Raw
1"use strict";
2/*
3 * Copyright The OpenTelemetry Authors
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17Object.defineProperty(exports, "__esModule", { value: true });
18exports.DiagLogLevel = void 0;
19/**
20 * Defines the available internal logging levels for the diagnostic logger, the numeric values
21 * of the levels are defined to match the original values from the initial LogLevel to avoid
22 * compatibility/migration issues for any implementation that assume the numeric ordering.
23 */
24var DiagLogLevel;
25(function (DiagLogLevel) {
26 /** Diagnostic Logging level setting to disable all logging (except and forced logs) */
27 DiagLogLevel[DiagLogLevel["NONE"] = 0] = "NONE";
28 /** Identifies an error scenario */
29 DiagLogLevel[DiagLogLevel["ERROR"] = 30] = "ERROR";
30 /** Identifies a warning scenario */
31 DiagLogLevel[DiagLogLevel["WARN"] = 50] = "WARN";
32 /** General informational log message */
33 DiagLogLevel[DiagLogLevel["INFO"] = 60] = "INFO";
34 /** General debug log message */
35 DiagLogLevel[DiagLogLevel["DEBUG"] = 70] = "DEBUG";
36 /**
37 * Detailed trace level logging should only be used for development, should only be set
38 * in a development environment.
39 */
40 DiagLogLevel[DiagLogLevel["VERBOSE"] = 80] = "VERBOSE";
41 /** Used to set the logging level to include all logging */
42 DiagLogLevel[DiagLogLevel["ALL"] = 9999] = "ALL";
43})(DiagLogLevel = exports.DiagLogLevel || (exports.DiagLogLevel = {}));
44//# sourceMappingURL=types.js.map
\No newline at end of file