import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const devboxLogsListView = await client.devboxes.logs.list('id');
console.log(devboxLogsListView.logs);{
"logs": [
{
"level": "<string>",
"timestamp_ms": 123,
"source": "setup_commands",
"cmd_id": "<string>",
"shell_name": "<string>",
"cmd": "<string>",
"message": "<string>",
"exit_code": 123
}
]
}Get all logs from a running or completed Devbox.
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const devboxLogsListView = await client.devboxes.logs.list('id');
console.log(devboxLogsListView.logs);{
"logs": [
{
"level": "<string>",
"timestamp_ms": 123,
"source": "setup_commands",
"cmd_id": "<string>",
"shell_name": "<string>",
"cmd": "<string>",
"message": "<string>",
"exit_code": 123
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The Devbox ID.
ID of execution to filter logs by.
Shell Name to filter logs by.
OK
List of logs for the given devbox.
Show child attributes
Was this page helpful?