Skip to content

Commit

Permalink
user singleton directly
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Sep 3, 2024
1 parent feca47c commit a225a43
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions packages/utils/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit a225a43

Please sign in to comment.