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

# getLogger

***

# Function: getLogger()

```ts theme={null}
function getLogger(options: GetLoggerOptions): GalileoLogger;
```

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

Retrieves an existing GalileoLogger or creates a new one if it does not exist.

## Parameters

### options

`GetLoggerOptions` = `{}`

Configuration options

## Returns

[`GalileoLogger`](/sdk-api/typescript/reference/README/classes/GalileoLogger)

An instance of GalileoLogger corresponding to the key
