Context
When catnet is embedded in larger automation pipelines, operators need machine-parseable log lines on stderr (separate from JSON scan results on stdout). Add --log-level (debug|info|warn|error) using log/slog (stdlib, Go 1.21+) so that warning events from catnet-core (EventWarning) are emitted as structured JSON log lines to stderr.
Acceptance criteria
Context
When catnet is embedded in larger automation pipelines, operators need machine-parseable log lines on stderr (separate from JSON scan results on stdout). Add --log-level (debug|info|warn|error) using log/slog (stdlib, Go 1.21+) so that warning events from catnet-core (EventWarning) are emitted as structured JSON log lines to stderr.
Acceptance criteria