MCPcopy
hub / github.com/7836246/cursor2api / log

Method log

src/logger.ts:901–909  ·  view source on GitHub ↗
(level: LogLevel, source: LogSource, phase: LogPhase, message: string, details?: unknown)

Source from the content-addressed store, hash-verified

899 }
900
901 private log(level: LogLevel, source: LogSource, phase: LogPhase, message: string, details?: unknown): void {
902 addEntry({
903 id: `log_${++logCounter}`,
904 requestId: this.requestId,
905 timestamp: Date.now(),
906 level, source, phase, message, details,
907 duration: Date.now() - this.summary.startTime,
908 });
909 }
910
911 // ---- 阶段追踪 ----
912 startPhase(phase: LogPhase, label: string): void {

Callers 15

debugMethod · 0.95
infoMethod · 0.95
warnMethod · 0.95
errorMethod · 0.95
completeMethod · 0.95
interceptedMethod · 0.95
failMethod · 0.95
e2e-prompt-ab.mjsFile · 0.80
runTestFunction · 0.80
sendCursorChatFunction · 0.80
e2e-ctf-bypass.mjsFile · 0.80

Calls 1

addEntryFunction · 0.85

Tested by 14

testFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testFunction · 0.64
testFunction · 0.64