import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const logEvent = await client.browsers.logs.stream('id', { source: 'path' });
console.log(logEvent.event);{
"event": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"message": "<string>"
}import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const logEvent = await client.browsers.logs.stream('id', { source: 'path' });
console.log(logEvent.event);{
"event": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"message": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Browser session ID
path, supervisor only required if source is path
only required if source is supervisor