mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-05 17:53:49 +08:00
30 lines
906 B
TypeScript
30 lines
906 B
TypeScript
import { ComponentLoggerOptions, DiagLogFunction, DiagLogger, DiagLoggerApi } from '../diag/types';
|
|
/**
|
|
* Singleton object which represents the entry point to the OpenTelemetry internal
|
|
* diagnostic API
|
|
*/
|
|
export declare class DiagAPI implements DiagLogger, DiagLoggerApi {
|
|
private static _instance?;
|
|
/** Get the singleton instance of the DiagAPI API */
|
|
static instance(): DiagAPI;
|
|
/**
|
|
* Private internal constructor
|
|
* @private
|
|
*/
|
|
private constructor();
|
|
setLogger: DiagLoggerApi['setLogger'];
|
|
/**
|
|
*
|
|
*/
|
|
createComponentLogger: (options: ComponentLoggerOptions) => DiagLogger;
|
|
verbose: DiagLogFunction;
|
|
debug: DiagLogFunction;
|
|
info: DiagLogFunction;
|
|
warn: DiagLogFunction;
|
|
error: DiagLogFunction;
|
|
/**
|
|
* Unregister the global logger and return to Noop
|
|
*/
|
|
disable: () => void;
|
|
}
|
|
//# sourceMappingURL=diag.d.ts.map
|