GET
/
browsers
/
{id}
/
logs
/
stream
JavaScript
import Kernel from '@onkernel/sdk';

const client = new Kernel({
  apiKey: 'My API Key',
});

const logEvent = await client.browsers.logs.stream('id', { source: 'path' });

console.log(logEvent.event);
{
  "event": "<string>",
  "timestamp": "2023-11-07T05:31:56Z",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Browser session ID

Query Parameters

source
enum<string>
required
Available options:
path,
supervisor
follow
boolean
default:true
path
string

only required if source is path

supervisor_process
string

only required if source is supervisor

Response

200
text/event-stream

SSE stream of logs

A log entry from the application.