---
title: "Logger utility"
slug: "logger-utility"
abstract: "Lists the acceptable values for the Logger utitlity in Sitecore Search JS SDK. Also includes screenshots."
---
# Logger utility

Search JS SDK for React offers a logging utility that you can use during development. You can monitor data requests and responses, and also watch values while debugging in development.

Typical scenarios also include [using the utility](https://doc.sitecore.com/search/en/developers/search-js-sdk-for-react/working-with-js-sdk-and-ui-components/use-the-logging-utility-from-the-js-sdk.html "Use the logging utility from the JS SDK") to confirm your components are making the desired requests or dispatching the desired payloads when tracking visitor interactions.

![Screenshot of a search request and response log in the browser console.](https://doc.sitecore.com/api/markdown-image/search/en/developers/search-js-sdk-for-react/images/request_logging.png)

![Screenshot of an event tracking log in the browserr console.](https://doc.sitecore.com/api/markdown-image/search/en/developers/search-js-sdk-for-react/images/event_logging.png)

## Logger level values

The logging utility in the JS SDK is flexible and you can customize its use. You can choose what you would like to [log and appear](https://doc.sitecore.com/search/en/developers/search-js-sdk-for-react/working-with-js-sdk-and-ui-components/use-the-logging-utility-from-the-js-sdk.html "Use the logging utility from the JS SDK") in your browser console. The following are acceptable `Logger` level values:

- `Logger.NONE` - prints nothing.
- `Logger.ERROR` - prints errors only.
- `Logger.WARN` - prints errors and warnings.
- `Logger.INFO` - prints errors, warnings, and information.
- `Logger.DEBUG` - prints errors, warnings, and information. Also available for debugging.
- `Logger.TRACE` - prints everything and is available for debugging.

> [!important]
> To prevent tracing in production, set the `Logger` level to `Logger.NONE`.