> ## Documentation Index
> Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# getLogStream

***

# Function: getLogStream()

## Call Signature

```ts theme={null}
function getLogStream(options: object): Promise<LogStream>;
```

Defined in: [src/utils/log-streams.ts](https://github.com/rungalileo/galileo-js/blob/main/src/utils/log-streams.ts)

Retrieves a log stream by ID or name.

### Parameters

#### options

The options for retrieving a log stream.

##### id?

`string`

(Optional) The ID of the log stream.

##### name?

`string`

(Optional) The name of the log stream.

##### projectName

`string`

The name of the project.

### Returns

`Promise`\<[`LogStream`](/sdk-api/typescript/reference/README/classes/LogStream)>

A promise that resolves to the log stream.

## Call Signature

```ts theme={null}
function getLogStream(options: object): Promise<LogStream>;
```

Defined in: [src/utils/log-streams.ts](https://github.com/rungalileo/galileo-js/blob/main/src/utils/log-streams.ts)

Retrieves a log stream by ID or name.

### Parameters

#### options

The options for retrieving a log stream.

##### id?

`string`

(Optional) The ID of the log stream.

##### name?

`string`

(Optional) The name of the log stream.

##### projectId?

`string`

(Optional) The ID of the project.

##### projectName?

`string`

(Optional) The name of the project.

### Returns

`Promise`\<[`LogStream`](/sdk-api/typescript/reference/README/classes/LogStream)>

A promise that resolves to the log stream.
