league service
This commit is contained in:
17
apps/website/lib/modules/logging/LoggingModule.ts
Normal file
17
apps/website/lib/modules/logging/LoggingModule.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Global, Module } from '@nestjs/common';
|
||||
import { Logger } from '@gridpilot/shared/logging/Logger';
|
||||
import { ConsoleLogger } from '@gridpilot/adapters/logging/ConsoleLogger';
|
||||
|
||||
export const LOGGER_TOKEN = Symbol('Logger');
|
||||
|
||||
@Global()
|
||||
@Module({
|
||||
providers: [
|
||||
{
|
||||
provide: LOGGER_TOKEN,
|
||||
useClass: ConsoleLogger,
|
||||
},
|
||||
],
|
||||
exports: [LOGGER_TOKEN],
|
||||
})
|
||||
export class LoggingModule {}
|
||||
Reference in New Issue
Block a user