mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 16:27:33 -10:00
devvm log [-f] [-n N] [--blocked] shows what this folder's VM's proxy allowed and blocked, the last 50 events unless -n, following new ones with -f, or the blocks grouped by host and port with the devvm policy allow command that allows each (--blocked). Control characters from the VM are dropped. - internal/netpolicy/log.go: WriteLog (tail and follow, a partial last line and an emptied log handled), FormatEvent, WriteBlocked. - internal/proxy: event is exported as Event; AllowRule. - internal/ui: OneLine, for VM-made values on one line of data. - internal/vm: Env.Log; internal/cli/log.go. - Messages: net_off_log, log_empty, log_failed. - Tests: testdata/script/log.txtar (the three network.bats log cases), netpolicy and proxy table tests; e2e network checks devvm log and --blocked. - Docs: network.md (Logs), commands.md (Network policy), CLI reference. Co-Authored-By: Claude Opus 5.5 <[email protected]>