Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
29 lines
977 B
Plaintext
29 lines
977 B
Plaintext
import type { Log, LogSeverityLevel, ParameterizedString, Scope } from '@sentry/core';
|
|
/**
|
|
* Additional metadata to capture the log with.
|
|
*/
|
|
interface CaptureLogMetadata {
|
|
scope?: Scope;
|
|
}
|
|
type CaptureLogArgWithTemplate = [
|
|
messageTemplate: string,
|
|
messageParams: Array<unknown>,
|
|
attributes?: Log['attributes'],
|
|
metadata?: CaptureLogMetadata
|
|
];
|
|
type CaptureLogArgWithoutTemplate = [
|
|
message: ParameterizedString,
|
|
attributes?: Log['attributes'],
|
|
metadata?: CaptureLogMetadata
|
|
];
|
|
export type CaptureLogArgs = CaptureLogArgWithTemplate | CaptureLogArgWithoutTemplate;
|
|
/**
|
|
* Capture a log with the given level.
|
|
*
|
|
* @param level - The level of the log.
|
|
* @param message - The message to log.
|
|
* @param attributes - Arbitrary structured data that stores information about the log - e.g., userId: 100.
|
|
*/
|
|
export declare function captureLog(level: LogSeverityLevel, ...args: CaptureLogArgs): void;
|
|
export {};
|
|
//# sourceMappingURL=capture.d.ts.map |