import { Global, Module } from '@nestjs/common';
import { Logger } from '@core/shared/application/Logger';
import { ConsoleLogger } from '@adapters/logging/ConsoleLogger';

@Global()
@Module({
  providers: [
    {
      provide: 'Logger',
      useClass: ConsoleLogger,
    },
  ],
  exports: ['Logger'],
})
export class LoggingModule {}