MCPcopy Index your code
hub / github.com/PowerShell/vscode-powershell / writeAtLevel

Method writeAtLevel

src/logging.ts:53–65  ·  view source on GitHub ↗
(
        logLevel: LogLevel,
        message: string,
        ...additionalMessages: string[]
    )

Source from the content-addressed store, hash-verified

51 }
52
53 private writeAtLevel(
54 logLevel: LogLevel,
55 message: string,
56 ...additionalMessages: string[]
57 ): void {
58 if (logLevel >= this.logLevel) {
59 void this.writeLine(message, logLevel);
60
61 for (const additionalMessage of additionalMessages) {
62 void this.writeLine(additionalMessage, logLevel);
63 }
64 }
65 }
66
67 public write(message: string, ...additionalMessages: string[]): void {
68 this.writeAtLevel(LogLevel.Info, message, ...additionalMessages);

Callers 5

writeMethod · 0.95
writeTraceMethod · 0.95
writeDebugMethod · 0.95
writeWarningMethod · 0.95
writeErrorMethod · 0.95

Calls 1

writeLineMethod · 0.95

Tested by

no test coverage detected