UNPKG

@vtex/diagnostics-nodejs

Version:

Diagnostics library for Node.js applications

19 lines 960 B
import { Logger, LogAttributes } from '@opentelemetry/api-logs'; import { LogClient, LogsClientConfig } from '../types'; import { LoggerProvider } from '@opentelemetry/sdk-logs'; export declare class LoggerClientImpl implements LogClient { private logger; private provider; constructor(provider: LoggerProvider, clientName: string, config: LogsClientConfig); getProvider(): LoggerProvider; getLogger(name: string): Logger; private log; debug(message: string, attributes?: LogAttributes): void; info(message: string, attributes?: LogAttributes): void; warn(message: string, attributes?: LogAttributes): void; error(message: string, attributes?: LogAttributes): void; fatal(message: string, attributes?: LogAttributes): void; shutdown(): Promise<void>; } export declare const NewClient: (config: LogsClientConfig, serviceName: string, clientName: string) => Promise<LogClient>; //# sourceMappingURL=client.d.ts.map