Stream instance logs (SSE)
client.instances.logs(stringid, InstanceLogsParams { follow, source, tail } query?, RequestOptionsoptions?): InstanceLogsResponse | Stream<InstanceLogsResponse>
/instances/{id}/logs
Streams instance logs as Server-Sent Events.
Use the source parameter to select which log to stream:
app(default): Guest application logs (serial console)vmm: Cloud Hypervisor VMM logshypeman: Hypeman operations log
Returns the last N lines (controlled by tail parameter), then optionally
continues streaming new lines if follow=true.
Parameters
id: string
Returns
InstanceLogsResponse = string
Stream instance logs (SSE)
import Hypeman from '@onkernel/hypeman';
const client = new Hypeman({
apiKey: 'My API Key',
});
const response = await client.instances.logs('id');
console.log(response);