> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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 title="ISensitiveLoggingSettings Object Structure">
  ```js theme={null}
  export interface ISensitiveLoggingSettings {
      maskLogging: boolean;
      maskAnalytics: boolean;
      maskIPAddress?: boolean;
      disableConversations: boolean;
      disableIntentTrainer: boolean;
  }
  ```

  **Returns:** `void`
</Accordion>

## Example

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