> ## Documentation Index
> Fetch the complete documentation index at: https://docs-classic.cognigy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# setSensitiveLoggingSettings

## Syntax

`setSensitiveLoggingSettings(settings)`

## Description

Adjusts the masking and redaction configuration for the conversation.

**Parameters:**

* `settings`: `ISensitiveLoggingSettings` — an object containing the sensitive logging settings.

> [accordion] ISensitiveLoggingSettings Object Structure
>
> ```js theme={null}
> export interface ISensitiveLoggingSettings {
>     maskLogging: boolean;
>     maskAnalytics: boolean;
>     maskIPAddress?: boolean;
>     disableConversations: boolean;
>     disableIntentTrainer: boolean;
> }
> ```
>
> **Returns:** `void`

## Example

```js theme={null}
// Example: Update sensitive logging settings for the current conversation
setSensitiveLoggingSettings({
  maskLogging: true,
  maskAnalytics: false,
  disableConversations: false,
  disableIntentTrainer: true,
});
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.