MCPcopy
hub / github.com/PowerShell/vscode-powershell / ILogger

Interface ILogger

src/logging.ts:9–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7 * This will allow for easy mocking of the logger during unit tests.
8 */
9export interface ILogger {
10 write(message: string, ...additionalMessages: string[]): void;
11 writeAndShowInformation(
12 message: string,
13 ...additionalMessages: string[]
14 ): Promise<void>;
15 writeTrace(message: string, ...additionalMessages: string[]): void;
16 writeDebug(message: string, ...additionalMessages: string[]): void;
17 writeWarning(message: string, ...additionalMessages: string[]): void;
18 writeAndShowWarning(
19 message: string,
20 ...additionalMessages: string[]
21 ): Promise<void>;
22 writeError(message: string, ...additionalMessages: string[]): void;
23 writeAndShowError(
24 message: string,
25 ...additionalMessages: string[]
26 ): Promise<void>;
27 writeAndShowErrorWithActions(
28 message: string,
29 actions: {
30 prompt: string;
31 action: (() => Promise<void>) | undefined;
32 }[],
33 ): Promise<void>;
34}
35
36export class Logger implements ILogger {
37 // Log output channel handles all the verbosity management so we don't have to.

Callers 52

constructorMethod · 0.65
startMethod · 0.65
restartSessionMethod · 0.65
startLanguageClientMethod · 0.65
startMethod · 0.65
maybeGetNewReleaseMethod · 0.65
promptToUpdateMethod · 0.65
constructorMethod · 0.65
showExtensionCommandsMethod · 0.65
activateFunction · 0.65

Implementers 2

TestLoggertest/utils.ts
Loggersrc/logging.ts

Calls

no outgoing calls

Tested by

no test coverage detected