MCPcopy
hub / github.com/electron/forge / log

Method log

packages/utils/web-multi-logger/src/Tab.ts:23–35  ·  view source on GitHub ↗

* Log a line to the web UI, a new line is automatically appended to the line

(line: string)

Source from the content-addressed store, hash-verified

21 * Log a line to the web UI, a new line is automatically appended to the line
22 */
23 log(line: string): void {
24 const log = new Log(line, new Date());
25 this.logs.push(log);
26
27 for (const client of this.ws.getWss().clients) {
28 client.send(
29 JSON.stringify({
30 tab: this.id,
31 payload: log,
32 }),
33 );
34 }
35 }
36
37 private toJSON() {
38 return {

Callers 15

test-clear.tsFile · 0.80
mainFunction · 0.80
startVerdaccioFunction · 0.80
stopVerdaccioFunction · 0.80
publishPackagesFunction · 0.80
runCommandFunction · 0.80
main.jsFile · 0.80
VitePluginClass · 0.80
cbMethod · 0.80
applyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected