diff --git a/packages/utils/src/logger.ts b/packages/utils/src/logger.ts index 0682e99f3b62..533b59fd5882 100644 --- a/packages/utils/src/logger.ts +++ b/packages/utils/src/logger.ts @@ -101,13 +101,4 @@ function makeLogger(): Logger { * This is a logger singleton which either logs things or no-ops if logging is not enabled. * The logger is a singleton on the carrier, to ensure that a consistent logger is used throughout the SDK. */ -export const logger: Logger = new Proxy( - {}, - { - get: (_target, prop: ConsoleLevel) => { - const logger = getGlobalSingleton('logger', makeLogger); - - return logger[prop]; - }, - }, -) as Logger; +export const logger = getGlobalSingleton('logger', makeLogger);