@@ -337,25 +337,28 @@ export function captureSession(end: boolean = false): void {
337337}
338338
339339/**
340- * A utility to record a log with level 'INFO' and send it to sentry.
341- *
342- * Logs represent a message and some parameters which provide context for a trace or error.
343- * Ex: sentry.logInfo`user ${username} just bought ${item}!`
344- */
345- export const _experimentalLogInfo = captureLog . bind ( null , 'info' ) ;
346-
347- /**
348- * A utility to record a log with level 'ERROR' and send it to sentry.
349- *
350- * Logs represent a message and some parameters which provide context for a trace or error.
351- * Ex: sentry.logError`user ${username} just bought ${item}!`
352- */
353- export const _experimentalLogError = captureLog . bind ( null , 'error' ) ;
354-
355- /**
356- * A utility to record a log with level 'WARNING' and send it to sentry.
357- *
358- * Logs represent a message and some parameters which provide context for a trace or error.
359- * Ex: sentry.logWarning`user ${username} just bought ${item}!`
340+ * A namespace for experimental logging functions.
360341 */
361- export const _experimentalLogWarning = captureLog . bind ( null , 'warning' ) ;
342+ export const _experiment_log = {
343+ /**
344+ * A utility to record a log with level 'INFO' and send it to sentry.
345+ *
346+ * Logs represent a message and some parameters which provide context for a trace or error.
347+ * Ex: sentry.logInfo`user ${username} just bought ${item}!`
348+ */
349+ info : captureLog . bind ( null , 'info' ) ,
350+ /**
351+ * A utility to record a log with level 'ERROR' and send it to sentry.
352+ *
353+ * Logs represent a message and some parameters which provide context for a trace or error.
354+ * Ex: sentry.logError`user ${username} just bought ${item}!`
355+ */
356+ error : captureLog . bind ( null , 'error' ) ,
357+ /**
358+ * A utility to record a log with level 'WARNING' and send it to sentry.
359+ *
360+ * Logs represent a message and some parameters which provide context for a trace or error.
361+ * Ex: sentry.logWarning`user ${username} just bought ${item}!`
362+ */
363+ warning : captureLog . bind ( null , 'warning' ) ,
364+ } ;
0 commit comments