updated loggers to getLogger

This commit is contained in:
Bojan Kucera 2025-06-08 19:52:11 -04:00
parent 1ccdbddb71
commit 2aaeba2f6c
16 changed files with 72 additions and 97 deletions

View file

@ -1,4 +1,4 @@
import { Logger } from '@stock-bot/logger';
import { getLogger } from '@stock-bot/logger';
import type { HealthStatus, PerformanceMetrics, QueryResult } from './types';
// Interface to avoid circular dependency
@ -14,7 +14,7 @@ interface QuestDBClientInterface {
* automatic recovery capabilities for the QuestDB client.
*/
export class QuestDBHealthMonitor {
private readonly logger: Logger;
private readonly logger: ReturnType<typeof getLogger>;
private healthCheckInterval: NodeJS.Timeout | null = null;
private lastHealthCheck: Date | null = null;
private performanceMetrics: PerformanceMetrics = {
@ -27,7 +27,7 @@ export class QuestDBHealthMonitor {
memoryUsage: 0
};
constructor(private readonly client: QuestDBClientInterface) {
this.logger = new Logger('QuestDBHealthMonitor');
this.logger = getLogger('questdb-health-monitor');
}
/**