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

# init

***

# Function: init()

```ts theme={null}
function init(options: GetLoggerOptions & object): Promise<void>;
```

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

Get/Create new logger (like getLogger()), but also provides session initialization.
If no options are provided, defaults to the following environment variables:

* GALILEO\_PROJECT\_NAME
* GALILEO\_LOG\_STREAM\_NAME

## Parameters

### options

`GetLoggerOptions` & `object` = `{}`

Configuration options to initialize the logger

## Returns

`Promise`\<`void`>
