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

Utility function to retrieve an existing GalileoLogger or create a new one if it does not exist.

This method first computes the key from the parameters, checks if a logger
exists in the cache, and if not, creates a new GalileoLogger.

## Parameters

### options

`GetLoggerOptions` = `{}`

Configuration options

## Returns

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

An instance of GalileoLogger corresponding to the key
