MCPcopy Create free account
hub / github.com/coder/coder / generateLogs

Function generateLogs

site/src/modules/resources/DownloadAgentLogsButton.stories.tsx:50–58  ·  view source on GitHub ↗
(count: number)

Source from the content-addressed store, hash-verified

48};
49
50function generateLogs(count: number): WorkspaceAgentLog[] {
51 return Array.from({ length: count }, (_, i) => ({
52 id: i,
53 output: `log line ${i}`,
54 created_at: new Date().toISOString(),
55 level: "info",
56 source_id: "",
57 }));
58}

Calls

no outgoing calls

Tested by

no test coverage detected