> This page is for Browser SDK, version v4 (default).
> For other versions, use one of these documentation indexes:
> - v4 (default): https://signalwire.com/docs/browser-sdk/v4/llms.txt
> - v3: https://signalwire.com/docs/browser-sdk/v3/llms.txt
> - v2: https://signalwire.com/docs/browser-sdk/v2/llms.txt

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# getLogger

> Returns the current SDK logger instance.

```ts
getLogger(): InternalSDKLogger
```

Returns the SDK's current logger. Useful when a host application wants to attach its own transport (e.g. a remote log sink) without replacing the entire logger via [`setLogger`](/docs/browser-sdk/v4/reference/functions/set-logger).

## **Returns**

The active logger instance (the built-in one, unless [`setLogger`](/docs/browser-sdk/v4/reference/functions/set-logger) has been called).

## **Examples**

```ts
import { getLogger } from '@signalwire/js';

const logger = getLogger();
logger.info('app ready');
```