UNPKG

906 BTypeScriptView Raw
1import { ComponentLoggerOptions, DiagLogFunction, DiagLogger, DiagLoggerApi } from '../diag/types';
2/**
3 * Singleton object which represents the entry point to the OpenTelemetry internal
4 * diagnostic API
5 */
6export declare class DiagAPI implements DiagLogger, DiagLoggerApi {
7 private static _instance?;
8 /** Get the singleton instance of the DiagAPI API */
9 static instance(): DiagAPI;
10 /**
11 * Private internal constructor
12 * @private
13 */
14 private constructor();
15 setLogger: DiagLoggerApi['setLogger'];
16 /**
17 *
18 */
19 createComponentLogger: (options: ComponentLoggerOptions) => DiagLogger;
20 verbose: DiagLogFunction;
21 debug: DiagLogFunction;
22 info: DiagLogFunction;
23 warn: DiagLogFunction;
24 error: DiagLogFunction;
25 /**
26 * Unregister the global logger and return to Noop
27 */
28 disable: () => void;
29}
30//# sourceMappingURL=diag.d.ts.map
\No newline at end of file