MCPcopy Create free account
hub / github.com/betta-tech/byo-coding-agent / LoggingStrategy

Struct LoggingStrategy

internal/compact/logging.go:15–18  ·  view source on GitHub ↗

LoggingStrategy wraps another strategy and appends each non-trivial compaction (before / after) to a file. Use it to inspect strategies and compare them side-by-side without touching their implementations.

Source from the content-addressed store, hash-verified

13// compaction (before / after) to a file. Use it to inspect strategies and
14// compare them side-by-side without touching their implementations.
15type LoggingStrategy struct {
16 Inner CompactionStrategy
17 FilePath string
18}
19
20// WithLogging is sugar for &LoggingStrategy{Inner: inner, FilePath: path}.
21func WithLogging(inner CompactionStrategy, path string) *LoggingStrategy {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected