Skip to content

Commit

Permalink
fix: file characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyrlex committed Nov 23, 2024
1 parent c7392ae commit 7b165ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/loggage/loggage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@ export class Loggage {

private logError(log: string, message: unknown): void {
if (this.save && this.file) {
this.file.error(log, message);
this.file.error(`${new Date().toLocaleTimeString()} ${this.name}`, message);
}

this.console.error(log, message);
}

private logMessage(log: string, message: unknown): void {
if (this.save && this.file) {
this.file.log(log, message);
this.file.log(`${new Date().toLocaleTimeString()} ${this.name}`, message);
}

this.console.log(log, message);
Expand Down

0 comments on commit 7b165ac

Please sign in to comment.