MCPcopy
hub / github.com/kimlimjustin/xplorer / InfoLog

Function InfoLog

src/Components/Functions/log.ts:26–31  ·  view source on GitHub ↗
(info: any)

Source from the content-addressed store, hash-verified

24 * @returns {Promise<void>}
25 */
26const InfoLog = async (info: any): Promise<void> => {
27 const log = await Storage.get('log');
28 let infoLog = log?.info ?? [];
29 log.info = [...infoLog, { info, timestamp: new Date() }];
30 Storage.set('log', log);
31};
32
33/**
34 * Write down operation logs

Callers 1

OpenDirFunction · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected