MCPcopy Create free account
hub / github.com/coderoad/coderoad-vscode / logger

Function logger

web-app/src/services/logger/index.ts:5–13  ·  view source on GitHub ↗
(...messages: Log[])

Source from the content-addressed store, hash-verified

3export type Log = string | object | number | null
4
5const logger = (...messages: Log[]): void => {
6 // logs are difficult to view in the web client.
7 // for debugging purposes it's easier to collect logs in the "CodeRoad (Logs)" output channel
8 editor.postMessage({
9 type: 'CLIENT_LOG',
10 payload: messages,
11 source: 'coderoad', // filter events by source on editor side
12 })
13}
14
15export default logger

Callers 12

RoutesFunction · 0.50
RouterFunction · 0.50
highlightFunction · 0.50
MarkdownFunction · 0.50
componentDidCatchMethod · 0.50
ErrorMarkdownFunction · 0.50
formatLevelsFunction · 0.50
LoadTutorialSummaryFunction · 0.50
onSubmitFunction · 0.50
useStateMachineFunction · 0.50
context.tsFile · 0.50
index.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected