-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from Lightning-Flow-Scanner/feat/update-core-…
…with-new-rules chore(log): add log manager for tracing purposes
- Loading branch information
Showing
5 changed files
with
128 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as vscode from 'vscode'; | ||
|
||
// Usage in the OutputChannel class | ||
export class OutputChannel { | ||
private static instance: OutputChannel; | ||
|
||
private constructor(public logChannel: vscode.LogOutputChannel) {} | ||
|
||
public static getInstance(): OutputChannel { | ||
if (!this.instance) { | ||
this.instance = new OutputChannel( | ||
vscode.window.createOutputChannel('Lightning Flow Scanner', { | ||
log: true, | ||
}) | ||
); | ||
} | ||
return this.instance; | ||
} | ||
} |