removed deprecated createLogger and replaced with getLogger

This commit is contained in:
Bojan Kucera 2025-06-08 12:31:29 -04:00
parent 5d8b102422
commit c10a524aa8
29 changed files with 93 additions and 136 deletions

View file

@ -1,7 +1,7 @@
/**
* Processing Service - Technical indicators and data processing
*/
import { createLogger } from '@stock-bot/logger';
import { getLogger } from '@stock-bot/logger';
import { loadEnvVariables } from '@stock-bot/config';
import { Hono } from 'hono';
import { serve } from '@hono/node-server';
@ -10,7 +10,7 @@ import { serve } from '@hono/node-server';
loadEnvVariables();
const app = new Hono();
const logger = createLogger('processing-service');
const logger = getLogger('processing-service');
const PORT = parseInt(process.env.PROCESSING_SERVICE_PORT || '3003');
// Health check endpoint

View file

@ -2,7 +2,7 @@
* Technical Indicators Service
* Leverages @stock-bot/utils for calculations
*/
import { createLogger } from '@stock-bot/logger';
import { getLogger } from '@stock-bot/logger';
import {
sma,
ema,
@ -10,7 +10,7 @@ import {
macd
} from '@stock-bot/utils';
const logger = createLogger('indicators-service');
const logger = getLogger('indicators-service');
export interface IndicatorRequest {
symbol: string;