> ## 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.

# createLogStream

***

# Function: createLogStream()

## Call Signature

```ts theme={null}
function createLogStream(name: string, projectName: string): Promise<LogStream>;
```

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

Creates a new log stream.

### Parameters

#### name

`string`

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 created log stream.

## Call Signature

```ts theme={null}
function createLogStream(name: string, options?: object): Promise<LogStream>;
```

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

Creates a new log stream.

### Parameters

#### name

`string`

The name of the log stream.

#### options?

(Optional) The options for creating 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 created log stream.
