Skip to content

Commit

Permalink
linted logger service
Browse files Browse the repository at this point in the history
  • Loading branch information
jakenuts committed Dec 9, 2024
1 parent 2df14e7 commit 4a7d961
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/logging/LoggerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export class LoggerService {
* @param source Optional source identifier (e.g. service name)
*/
public log(message: string, source?: string) {
if (this.disposed) return;
if (this.disposed) {
return;
}
const timestamp = new Date().toISOString()
const prefix = source ? `[${source}]` : ""
this.outputChannel.appendLine(`${timestamp} ${prefix} ${message}`)
Expand Down

0 comments on commit 4a7d961

Please sign in to comment.