MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / getExtensionLogPath

Function getExtensionLogPath

src/extension/utils/log.ts:9–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8let extensionLogPath: string;
9export function getExtensionLogPath() {
10 extensionLogPath = extensionLogPath || config.extensionLogFile || path.join(process.env.DC_TEST_LOGS || os.tmpdir(), `dart-code-startup-log-${getRandomInt(0x1000, 0x10000).toString(16)}.txt`);
11 return extensionLogPath;
12}
13export const userSelectableLogCategories: Record<string, LogCategory> = {
14 "Analysis Server": LogCategory.Analyzer,
15 "Analysis Server Timings": LogCategory.AnalyzerTiming,

Callers 2

activateFunction · 0.90
openExtensionLogMethod · 0.90

Calls 2

getRandomIntFunction · 0.90
toStringMethod · 0.45

Tested by

no test coverage detected