mirror of
https://github.com/imjasonh/snoop
synced 2026-07-14 19:35:42 +00:00
Implement context-aware structured logging throughout the codebase using chainguard-dev/clog. This provides better observability with configurable log levels and structured output. - Add -log-level flag to control verbosity (debug, info, warn, error) - Replace all log.Println/Printf calls with structured clog logging - Thread context through NewProbe, NewProcessor, and NewFileReporter - Add detailed debug logging for eBPF tracepoint attachment - Add debug logging for file operations in reporter - Change "new file" messages to debug level to reduce noise - Update all tests to pass context.Background() Default log level is "info" which provides operational visibility without excessive verbosity. Debug level shows detailed event processing. Signed-off-by: Jason Hall <jason@chainguard.dev> |
||
|---|---|---|
| .. | ||
| reporter.go | ||
| reporter_test.go | ||