Switch to using the new custom logger

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-09-27 21:48:42 +02:00
parent 1a2959f6dc
commit d7f407da2d
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
24 changed files with 83 additions and 34 deletions

View file

@ -1,15 +1,17 @@
import {
Controller,
Logger,
Post,
UploadedFile,
UseInterceptors,
} from '@nestjs/common';
import { FileInterceptor } from '@nestjs/platform-express';
import { ConsoleLoggerService } from '../../../logger/console-logger.service';
@Controller('media')
export class MediaController {
private readonly logger = new Logger(MediaController.name);
constructor(private readonly logger: ConsoleLoggerService) {
this.logger.setContext(MediaController.name);
}
@Post('upload')
@UseInterceptors(FileInterceptor('file'))