MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / _getLoggerSettings

Function _getLoggerSettings

packages/core/src/utils/debug-logger.ts:108–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106}
107
108function _getLoggerSettings(): { enabled: boolean } {
109 if (!DEBUG_BUILD) {
110 return { enabled: false };
111 }
112
113 return getGlobalSingleton('loggerSettings', () => ({ enabled: false }));
114}
115
116/**
117 * This is a logger singleton which either logs things or no-ops if logging is not enabled.

Callers 3

enableFunction · 0.85
disableFunction · 0.85
isEnabledFunction · 0.85

Calls 1

getGlobalSingletonFunction · 0.90

Tested by

no test coverage detected