Skip to content

Commit

Permalink
Move logger to services folder #182
Browse files Browse the repository at this point in the history
  • Loading branch information
mapeveri committed Jan 19, 2025
1 parent 593b324 commit 6f04f38
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable } from '@nestjs/common';
import { Inject } from '@src/shared/domain/injector/inject.decorator';
import Logger, { LOGGER } from '@src/shared/domain/logger';
import Logger, { LOGGER } from '@src/shared/domain/services/logger';

import { UserAuthenticator, UserAuthenticatorResponse } from '@src/account/domain/auth/userAuthenticator';
import NestJwtTokenGenerator from '@src/shared/infrastructure/auth/jwt/nestJwtTokenGenerator';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common';
import { SocialAuthenticationVerifier } from '@src/account/domain/auth/socialAuthenticationVerifier';
import { OAuth2Client } from 'google-auth-library';
import { Inject } from '@src/shared/domain/injector/inject.decorator';
import Logger, { LOGGER } from '@src/shared/domain/logger';
import Logger, { LOGGER } from '@src/shared/domain/services/logger';

@Injectable()
export default class GoogleSocialAuthenticationVerifier implements SocialAuthenticationVerifier {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import Logger, { LOGGER } from './shared/domain/logger';
import Logger, { LOGGER } from './shared/domain/services/logger';
import { ValidationPipe } from '@nestjs/common';
import helmet from 'helmet';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
Expand Down
4 changes: 2 additions & 2 deletions src/shared/_dependencyInjection/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { NestJwtAuthGuard } from '@src/shared/guards/nestJwtAuthGuard';
import { JwtStrategy } from '@src/shared/infrastructure/auth/strategies/jwtStrategy';
import { APP_FILTER } from '@nestjs/core';
import { NestErrorFilter } from '@src/shared/infrastructure/exceptions/nestErrorFilter';
import { LOGGER } from '@src/shared/domain/logger';
import NestLogger from '@src/shared/infrastructure/logger/nestLogger';
import { LOGGER } from '@src/shared/domain/services/logger';
import NestLogger from '@src/shared/infrastructure/services/nestLogger';
import { COMMAND_BUS } from '@src/shared/domain/bus/commandBus/commandBus';
import NestCommandBus from '@src/shared/infrastructure/bus/nestCommandBus';
import { ASYNC_EVENT_BUS, EVENT_BUS } from '@src/shared/domain/bus/eventBus/eventBus';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { MessagePattern } from '@nestjs/microservices';
import { Inject } from '@src/shared/domain/injector/inject.decorator';
import { EVENT_BUS, EventBus } from '@src/shared/domain/bus/eventBus/eventBus';
import { CreateRequestContext, MikroORM } from '@mikro-orm/core';
import Logger, { LOGGER } from '@src/shared/domain/logger';
import Logger, { LOGGER } from '@src/shared/domain/services/logger';

@Controller()
export class DomainEventsConsumerController {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable } from '@nestjs/common';
import { Inject } from '@src/shared/domain/injector/inject.decorator';
import Logger, { LOGGER } from '@src/shared/domain/logger';
import Logger, { LOGGER } from '@src/shared/domain/services/logger';
import { JwtService } from '@nestjs/jwt';

@Injectable()
Expand Down
2 changes: 1 addition & 1 deletion src/shared/infrastructure/exceptions/nestErrorFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import DomainException from '@src/shared/domain/exceptions/domainException';
import ConflictException from '@src/shared/domain/exceptions/conflictException';
import NotFoundException from '@src/shared/domain/exceptions/notFoundException';
import UnauthorizedException from '@src/shared/domain/exceptions/unauthorizedException';
import Logger, { LOGGER } from '@src/shared/domain/logger';
import Logger, { LOGGER } from '@src/shared/domain/services/logger';
import { Inject } from '@src/shared/domain/injector/inject.decorator';

@Catch(Error)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Logger from '../../domain/logger';
import Logger from '../../domain/services/logger';
import { Injectable, Logger as NestJsLogger } from '@nestjs/common';
import * as winston from 'winston';

Expand Down
2 changes: 1 addition & 1 deletion src/shared/shared.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Global, Module, OnApplicationShutdown } from '@nestjs/common';
import { COMMAND_BUS } from '@src/shared/domain/bus/commandBus/commandBus';
import { LOGGER } from '@src/shared/domain/logger';
import { LOGGER } from '@src/shared/domain/services/logger';
import { ASYNC_EVENT_BUS, EVENT_BUS } from '@src/shared/domain/bus/eventBus/eventBus';
import { NestJwtAuthGuard } from '@src/shared/guards/nestJwtAuthGuard';
import { JwtStrategy } from '@src/shared/infrastructure/auth/strategies/jwtStrategy';
Expand Down

0 comments on commit 6f04f38

Please sign in to comment.