Method
Log
(ctx context.Context, level tracelog.LogLevel, msg string, data map[string]any)
Source from the content-addressed store, hash-verified
| 43 | } |
| 44 | |
| 45 | func (l *testLogger) Log(ctx context.Context, level tracelog.LogLevel, msg string, data map[string]any) { |
| 46 | l.mux.Lock() |
| 47 | defer l.mux.Unlock() |
| 48 | |
| 49 | data["ctxdata"] = ctx.Value("ctxdata") |
| 50 | l.logs = append(l.logs, testLog{lvl: level, msg: msg, data: data}) |
| 51 | } |
| 52 | |
| 53 | func (l *testLogger) Clear() { |
| 54 | l.mux.Lock() |
Callers
nothing calls this directly
Tested by
no test coverage detected