export interface ErrorMeta { error: { kind: string; message: string; stack?: string; }; } /** * Primitive-only attribute map. Forwarded to OTel log attributes (Datadog * facets), so values must stay low-cardinality-friendly (enums/ids/numbers), * not free-form text. */ type LogAttributes = Record; export interface Logger { debug: (...messages: unknown[]) => void; info: (...messages: unknown[]) => void; warn: (...messages: unknown[]) => void; /** * Emit an INFO-level log whose structured attributes are exported as OTel * log attributes (Datadog facets) instead of being flattened into the * message body. Plain `info()` joins every argument into one body string, so * attributes passed to it are never queryable. */ infoStructured?: (message: string, attributes: LogAttributes) => void; /** * Emit a WARN-level log whose structured attributes are exported as OTel log * attributes (Datadog facets) instead of being flattened into the message * body. Use for machine-queryable warn events such as stream stalls. */ warnStructured?: (message: string, attributes: LogAttributes) => void; error: (message: string, meta?: ErrorMeta) => void; } export declare function getLogger(loggerOverride?: (...messages: unknown[]) => void): Logger; export declare function getErrorMeta(error: unknown): ErrorMeta; export {}; //# sourceMappingURL=logging.d.ts.map