Sharkey/packages/backend/src/server/api/ApiLoggerService.ts

15 lines
338 B
TypeScript
Raw Normal View History

2022-09-17 21:27:08 +03:00
import { Inject, Injectable } from '@nestjs/common';
2022-09-18 17:07:41 +03:00
import type Logger from '@/logger.js';
import { LoggerService } from '@/core/LoggerService.js';
2022-09-17 21:27:08 +03:00
@Injectable()
export class ApiLoggerService {
public logger: Logger;
constructor(
2022-09-18 17:07:41 +03:00
private loggerService: LoggerService,
2022-09-17 21:27:08 +03:00
) {
2022-09-18 17:07:41 +03:00
this.logger = this.loggerService.getLogger('api');
2022-09-17 21:27:08 +03:00
}
}