Skip to content

Commit 78d5b3d

Browse files
feat: Operational logs over API: hypeman.log, vmm.log
1 parent 78d9681 commit 78d5b3d

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 24
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-79d2560d22cc9ee4e2bf34ad8de2e4f3ae8f4c653b1ed871ad532320ead489bc.yml
3-
openapi_spec_hash: 53af3f7cd0fe7951664479a9de444d56
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-8fded10e90df28c07b64a92d12d665d54749b9fc13c35520667637fc596957d9.yml
3+
openapi_spec_hash: 7374a732372bddf7f2c0b532b56ae3fb
44
config_hash: 510018ffa6ad6a17875954f66fe69598

pkg/cmd/instance.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ var instancesGet = cli.Command{
125125

126126
var instancesLogs = cli.Command{
127127
Name: "logs",
128-
Usage: "Streams instance console logs as Server-Sent Events. Returns the last N lines\n(controlled by `tail` parameter), then optionally continues streaming new lines\nif `follow=true`.",
128+
Usage: "Streams instance logs as Server-Sent Events. Use the `source` parameter to\nselect which log to stream:",
129129
Flags: []cli.Flag{
130130
&requestflag.StringFlag{
131131
Name: "id",
@@ -137,6 +137,14 @@ var instancesLogs = cli.Command{
137137
QueryPath: "follow",
138138
},
139139
},
140+
&requestflag.StringFlag{
141+
Name: "source",
142+
Usage: "Log source to stream:\n- app: Guest application logs (serial console output)\n- vmm: Cloud Hypervisor VMM logs (hypervisor stdout+stderr)\n- hypeman: Hypeman operations log (actions taken on this instance)\n",
143+
Value: requestflag.Value[hypeman.InstanceLogsParamsSource]("app"),
144+
Config: requestflag.RequestConfig{
145+
QueryPath: "source",
146+
},
147+
},
140148
&requestflag.IntFlag{
141149
Name: "tail",
142150
Usage: "Number of lines to return from end",

0 commit comments

Comments
 (0)