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