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

@ -5,7 +5,7 @@
*/
import { describe, it, expect, beforeEach, afterEach } from 'bun:test';
import { Logger, getLogger, createLogger, shutdownLoggers } from '../src';
import { Logger, getLogger, shutdownLoggers } from '../src';
import { loggerTestHelpers } from './setup';
describe('Basic Logger Tests', () => {
@ -32,13 +32,6 @@ describe('Basic Logger Tests', () => {
anotherTestLoggerInstance.logger.info('Factory test');
}).not.toThrow();
});
it('should create Pino logger with createLogger', () => {
expect(typeof createLogger).toBe('function');
// Test that createLogger function exists
expect(() => createLogger).not.toThrow();
});
});
describe('Logger Methods', () => {