1 | import { ComponentLoggerOptions, DiagLogger } from './types';
|
2 | /**
|
3 | * Component Logger which is meant to be used as part of any component which
|
4 | * will add automatically additional namespace in front of the log message.
|
5 | * It will then forward all message to global diag logger
|
6 | * @example
|
7 | * const cLogger = diag.createComponentLogger({ namespace: '@opentelemetry/instrumentation-http' });
|
8 | * cLogger.debug('test');
|
9 | * // @opentelemetry/instrumentation-http test
|
10 | */
|
11 | export declare class DiagComponentLogger implements DiagLogger {
|
12 | private _namespace;
|
13 | constructor(props: ComponentLoggerOptions);
|
14 | debug(...args: any[]): void;
|
15 | error(...args: any[]): void;
|
16 | info(...args: any[]): void;
|
17 | warn(...args: any[]): void;
|
18 | verbose(...args: any[]): void;
|
19 | }
|
20 | //# sourceMappingURL=ComponentLogger.d.ts.map |
\ | No newline at end of file |