Skip to content

Commit

Permalink
ILgecyLogger named temp LegacyLoggerInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfganggreschus committed Nov 13, 2023
1 parent 9b463e0 commit 14da120
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type RequestLoggingBody = {
/**
* @deprecated The new logger for loggables should be used.
*/
export interface ILegacyLogger {
export interface LegacyLoggerInterface {
http(message: RequestLoggingBody, context?: string): void;
log(message: unknown, context?: string): void;
error(message: unknown, trace?: string, context?: string): void;
Expand Down
4 changes: 2 additions & 2 deletions apps/server/src/core/logger/legacy-logger.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { WINSTON_MODULE_PROVIDER } from 'nest-winston';
import util from 'util';
import { Logger as WinstonLogger } from 'winston';
import { RequestLoggingBody } from './interfaces';
import { ILegacyLogger } from './interfaces/legacy-logger.interface';
import { LegacyLoggerInterface } from './interfaces/legacy-logger.interface';

@Injectable({ scope: Scope.TRANSIENT })
/**
Expand All @@ -12,7 +12,7 @@ import { ILegacyLogger } from './interfaces/legacy-logger.interface';
* Must implement ILegacyLogger but must not extend ConsoleLogger (this can be changed).
* Transient injection: Wherever injected, a separate instance will be created, that can be provided with a custom context.
*/
export class LegacyLogger implements ILegacyLogger {
export class LegacyLogger implements LegacyLoggerInterface {
/**
* This Logger Service can be injected into every Class,
* use setContext() with CustomProviderClass.name that will be added to every log.
Expand Down

0 comments on commit 14da120

Please sign in to comment.