introduce the logging module

This commit is contained in:
Sven Czarnian
2022-10-22 23:24:18 +02:00
parent fced0f7ec5
commit ab623c8cb6
8 changed files with 290 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { LoggingService } from './logging.service';
import { LoggingController } from './logging.controller';
import { LogEntrySchema } from './models/logentry.model';
@Module({
imports: [
MongooseModule.forFeature([{ name: 'logging', schema: LogEntrySchema }]),
],
providers: [LoggingService],
controllers: [LoggingController],
exports: [MongooseModule, LoggingService],
})
export class LoggingModule {}