@devopsplaybook.io/otel-utils
Version:
Utility to simplify integration with Open Telemetry
12 lines (11 loc) • 475 B
TypeScript
import { StandardLoggerInterface } from "./models/StandardLoggerInterface";
import { Span } from "@opentelemetry/sdk-trace-base";
export declare class ModuleLogger {
private module;
private standardLogger?;
constructor(module: string, standardLogger: StandardLoggerInterface);
info(message: string, context?: Span): void;
warn(message: string, context?: Span): void;
error(message: string, error?: Error, context?: Span): void;
private display;
}