diff --git a/packages/utils/src/fx-rates.ts b/packages/utils/src/fx-rates.ts index 204c514..51f8582 100644 --- a/packages/utils/src/fx-rates.ts +++ b/packages/utils/src/fx-rates.ts @@ -3,19 +3,10 @@ * Provides abstraction for multiple FX rate providers */ +import { getLogger } from './logging'; import type { AppConfig } from './config'; import { getConfig } from './config'; -// Simple logger for FX rates (avoids circular dependency) -function getLogger() { - return { - debug: (msg: string, ctx?: Record) => console.log(JSON.stringify({ level: 'debug', message: msg, ...ctx })), - info: (msg: string, ctx?: Record) => console.log(JSON.stringify({ level: 'info', message: msg, ...ctx })), - warn: (msg: string, ctx?: Record) => console.warn(JSON.stringify({ level: 'warn', message: msg, ...ctx })), - error: (msg: string, err?: Error, ctx?: Record) => console.error(JSON.stringify({ level: 'error', message: msg, error: err?.message, ...ctx })), - }; -} - export interface FXRate { fromCurrency: string; toCurrency: string;