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,5 +1,5 @@
import { PoolClient } from 'pg';
import { Logger } from '@stock-bot/logger';
import { getLogger } from '@stock-bot/logger';
import type { PostgreSQLClient } from './client';
import type { TransactionCallback } from './types';
@ -10,11 +10,11 @@ import type { TransactionCallback } from './types';
*/
export class PostgreSQLTransactionManager {
private readonly client: PostgreSQLClient;
private readonly logger: Logger;
private readonly logger: ReturnType<typeof getLogger>;
constructor(client: PostgreSQLClient) {
this.client = client;
this.logger = new Logger('PostgreSQLTransactionManager');
this.logger = getLogger('postgres-transaction-manager');
}
/**