MCPcopy
hub / github.com/xpf0000/FlyEnv / log

Method log

src/main/core/AppLog.ts:11–18  ·  view source on GitHub ↗
(flag: 'debug' | 'info' | 'error', msg: string)

Source from the content-addressed store, hash-verified

9 }
10
11 private log(flag: 'debug' | 'info' | 'error', msg: string) {
12 if (!this.window || this.window.isDestroyed()) {
13 return
14 }
15 const time = format(new Date(), 'yyyy/MM/dd HH:mm:ss')
16 const message = `[${time}] [${flag}] : ${msg}`
17 this.window.webContents.send('APP-On-Log', 'APP-On-Log', message)
18 }
19
20 debug(msg: string) {
21 this.log('debug', msg)

Callers 15

debugMethod · 0.95
infoMethod · 0.95
errorMethod · 0.95
setupFunction · 0.45
callFunction · 0.45
testFunction · 0.45
callFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
findUnusedKeysFunction · 0.45

Calls 2

formatFunction · 0.85
sendMethod · 0.45

Tested by 1

testFunction · 0.36