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

Function time

src/shared/logging.ts:110–110  ·  view source on GitHub ↗
(detailed = false)

Source from the content-addressed store, hash-verified

108 if (!file || !path.isAbsolute(file))
109 throw new Error("Path passed to logTo must be an absolute path");
110 const time = (detailed = false) => detailed ? `[${(new Date()).toTimeString()}] ` : `[${(new Date()).toLocaleTimeString()}] `;
111 createFolderForFile(file);
112 let logStream: fs.WriteStream | undefined = fs.createWriteStream(file);
113 if (header)

Callers 2

captureLogsFunction · 0.85
disposeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected