Skip to content

Commit

Permalink
Fix linting issues in CustomLogger.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
chase9 committed Jan 29, 2023
1 parent ca20066 commit 2c58f68
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/CustomLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,19 @@ export class CustomLogger implements Logger {
}

info(message: string, ...parameters: any[]): void {
if (this.logLevel >= CustomLogLevel.NOTICE)
this.logger.info(message, ...parameters);
if (this.logLevel >= CustomLogLevel.NOTICE) this.logger.info(message, ...parameters);
}

warn(message: string, ...parameters: any[]): void {
if (this.logLevel >= CustomLogLevel.WARN)
this.logger.warn(message, ...parameters);
if (this.logLevel >= CustomLogLevel.WARN) this.logger.warn(message, ...parameters);
}

error(message: string, ...parameters: any[]): void {
if (this.logLevel >= CustomLogLevel.ERROR)
this.logger.error(message, ...parameters);
if (this.logLevel >= CustomLogLevel.ERROR) this.logger.error(message, ...parameters);
}

debug(message: string, ...parameters: any[]): void {
if (this.logLevel >= CustomLogLevel.VERBOSE)
this.logger.debug(message, ...parameters);
if (this.logLevel >= CustomLogLevel.VERBOSE) this.logger.debug(message, ...parameters);
}

/**
Expand All @@ -47,5 +43,9 @@ export class CustomLogger implements Logger {
}

export enum CustomLogLevel {
NONE, ERROR, WARN, NOTICE, VERBOSE
}
NONE,
ERROR,
WARN,
NOTICE,
VERBOSE
}

0 comments on commit 2c58f68

Please sign in to comment.