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,6 +1,6 @@
import { Pool } from 'pg';
import { questdbConfig } from '@stock-bot/config';
import { createLogger, Logger } from '@stock-bot/logger';
import { getLogger } from '@stock-bot/logger';
import type {
QuestDBClientConfig,
QuestDBConnectionOptions,
@ -24,7 +24,7 @@ export class QuestDBClient {
private pgPool: Pool | null = null;
private readonly config: QuestDBClientConfig;
private readonly options: QuestDBConnectionOptions;
private readonly logger = createLogger('QuestDBClient');
private readonly logger = getLogger('QuestDBClient');
private readonly healthMonitor: QuestDBHealthMonitor;
private readonly influxWriter: QuestDBInfluxWriter;
private readonly schemaManager: QuestDBSchemaManager;