refactor api modules
This commit is contained in:
15
apps/api/src/domain/logging/LoggingModule.ts
Normal file
15
apps/api/src/domain/logging/LoggingModule.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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 {}
|
||||
Reference in New Issue
Block a user