MCPcopy Index your code
hub / github.com/rilldata/rill / Write

Method Write

runtime/pkg/logutil/handler.go:35–46  ·  view source on GitHub ↗
(entry zapcore.Entry, fields []zapcore.Field)

Source from the content-addressed store, hash-verified

33}
34
35func (d *BufferedZapCore) Write(entry zapcore.Entry, fields []zapcore.Field) error {
36 fields = append(fields, d.fields...)
37 // encode fields using zapcore.Encoder, send empty entry as we want to store the message separately
38 fieldsBuf, err := d.enc.EncodeEntry(zapcore.Entry{}, fields)
39 if err != nil {
40 return err
41 }
42 defer fieldsBuf.Free()
43 payload := fieldsBuf.String()
44
45 return d.logs.AddEntry(zapLevelToPBLevel(entry.Level), entry.Time, entry.Message, payload)
46}
47
48func (d *BufferedZapCore) With(fields []zapcore.Field) zapcore.Core {
49 clone := *d

Callers 15

ResolveMethod · 0.45
computeCacheKeyFunction · 0.45
WriteCSVFunction · 0.45
WriteXLSXFunction · 0.45
WriteParquetFunction · 0.45
LoggingMiddlewareFunction · 0.45
writeCSVFunction · 0.45
writeXLSXFunction · 0.45
writeParquetFunction · 0.45
WriteHashFunction · 0.45
convertToClaudeFileFunction · 0.45
convertToAgentsMDFileFunction · 0.45

Calls 4

zapLevelToPBLevelFunction · 0.85
EncodeEntryMethod · 0.80
AddEntryMethod · 0.80
StringMethod · 0.65