Skip to main content

getInstanceLogs

client.environmentDebugApi.getInstanceLogs(environmentId: string, params?: EnvironmentDebugLogsParams): Promise<EnvironmentDebugLog[]>

Retrieves parsed logs for an environment debug instance.

Returns structured log entries that have been parsed from raw output, making them easier to filter, search, and display in a UI.

Parameters

ParameterTypeRequiredDescription
environmentIdstringYesThe unique identifier of the environment instance
paramsEnvironmentDebugLogsParamsNoOptional parameters to filter logs by level, time range, or pagination

Returns

Promise<EnvironmentDebugLog[]> — A promise that resolves to an array of entries

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.environmentDebugApi.getInstanceLogs('environmentId');
console.log(result);