> For the complete documentation index, see [llms.txt](https://docs.sov.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sov.ai/api-reference/utils/verbose-utils.md).

# Verbose Utils

**Module:** `sovai.utils.verbose_utils`

## Classes

### `VerboseMode`

```python
class VerboseMode
```

Utility class to handle verbose output throughout the application.

This class provides a consistent interface for controlling debug output without cluttering the main code with conditional print statements.

**Attributes**

* `verbose`

**Methods**

### `__init__()`

```python
def __init__(self, verbose: bool = False)
```

Initialize verbose mode settings.

**Parameters**

| Parameter | Type   | Description                      |
| --------- | ------ | -------------------------------- |
| `verbose` | `bool` | Whether to enable verbose output |

***

### `log()`

```python
def log(self, args = (), kwargs = {}) -> None
```

Print information when verbose mode is enabled.

**Returns:** `None`

***

### `toggle_verbose()`

```python
def toggle_verbose(self, verbose: Optional[bool] = None) -> None
```

Toggle or set verbose mode.

**Parameters**

| Parameter | Type             | Description                                                   |
| --------- | ---------------- | ------------------------------------------------------------- |
| `verbose` | `Optional[bool]` | If provided, set verbose mode to this value; otherwise toggle |

**Returns:** `None`

***

***
