MCPcopy
hub / github.com/microsoft/vscode-js-debug / resolveLoggerOptions

Function resolveLoggerOptions

src/common/logging/index.ts:155–169  ·  view source on GitHub ↗
(
  dap: Dap.Api,
  config: boolean | Partial<ILoggingConfiguration>,
)

Source from the content-addressed store, hash-verified

153 * Creates logger setup options from the given configuration.
154 */
155export function resolveLoggerOptions(
156 dap: Dap.Api,
157 config: boolean | Partial<ILoggingConfiguration>,
158): ILoggerSetupOptions {
159 const fulfilled = fulfillLoggerOptions(config);
160 const options = {
161 sinks: [] as ILogSink[],
162 };
163
164 if (fulfilled.logFile) {
165 options.sinks.push(new FileLogSink(fulfilled.logFile, dap));
166 }
167
168 return options;
169}

Callers 1

_bootMethod · 0.90

Calls 2

fulfillLoggerOptionsFunction · 0.85
pushMethod · 0.65

Tested by

no test coverage detected