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

# autogen.logger.logger_utils.to_dict

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### to\_dict

```python theme={null}
to_dict(
    obj: int | float | str | bool | dict[Any, Any] | list[Any] | tuple[Any, ...] | Any,
    exclude: tuple[str, ...] = (),
    no_recursive: tuple[Any, ...] = ()
) -> Any
```

Convert object to dictionary.<br />

<b>Parameters:</b>

| Name           | Description                                                                                                                                                |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `obj`          | Object to convert<br /><br />**Type:** int \| float \| str \| bool \| dict\[typing.Any, typing.Any] \| list\[typing.Any] \| tuple\[typing.Any, ...] \| Any |
| `exclude`      | Keys to exclude.<br /><br />Defaults to ().<br /><br />**Type:** tuple\[str, ...]<br /><br />**Default:** ()                                               |
| `no_recursive` | Types to exclude from recursive conversion.<br /><br />Defaults to ().<br /><br />**Type:** tuple\[typing.Any, ...]<br /><br />**Default:** ()             |

<br />
