Skip to content

Commit

Permalink
chore: transports param
Browse files Browse the repository at this point in the history
  • Loading branch information
jahabeebs committed Nov 7, 2024
1 parent 6bc1954 commit 71631ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/shared/src/services/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ export class Logger implements ILogger {

/**
* Returns the instance of the Logger class.
* @param transportsArray - An array of transports to use with the logger.
* @returns The instance of the Logger class.
*/
public static getInstance(transportsArray?: Transport[]): Logger {
public static getInstance(): Logger {
if (!Logger.instance) {
Logger.instance = new Logger(transportsArray);
Logger.instance = new Logger();
}
return Logger.instance;
}
Expand Down

0 comments on commit 71631ea

Please sign in to comment.