diff --git a/app/client/src/instrumentation/index.ts b/app/client/src/instrumentation/index.ts index 1db0c70899..94b4e8f827 100644 --- a/app/client/src/instrumentation/index.ts +++ b/app/client/src/instrumentation/index.ts @@ -179,6 +179,25 @@ class AppsmithTelemetry { errorLogger(e); } } + + public captureLog( + args: unknown[], + level: LogLevel = LogLevel.INFO, + context?: Record, + ) { + if (!this.faro) { + return; + } + + try { + this.faro.api.pushLog(args, { + level, + context, + }); + } catch (e) { + errorLogger(e); + } + } } export const appsmithTelemetry = AppsmithTelemetry.getInstance();