MCPcopy Create free account
hub / github.com/MiloOweno/kernel-lab / MakeCyclicFileWriter

Function MakeCyclicFileWriter

logging/cyclicWriter.go:48–69  ·  view source on GitHub ↗

MakeCyclicFileWriter returns a writer that wraps a file to ensure it never grows too large

(liveLogFilePath string, archiveFilePath string, sizeLimitBytes uint64, maxLogAge time.Duration)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

configureLoggingFunction · 0.92
InitializeMethod · 0.92
TestDeadlockLoggingFunction · 0.92
testCyclicWriteFunction · 0.85

Calls 1

SizeMethod · 0.65

Tested by 3

TestDeadlockLoggingFunction · 0.74
testCyclicWriteFunction · 0.68