import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { LogEntry } from './entities/log-entry.entity';
import { LogRetentionScheduler } from './log-retention.scheduler';
import { LoggingService } from './logging.service';
import { LogsController } from './logs.controller';

@Module({
  imports: [TypeOrmModule.forFeature([LogEntry])],
  controllers: [LogsController],
  providers: [LoggingService, LogRetentionScheduler],
  exports: [LoggingService],
})
export class LoggingModule {}
