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

# atoti.LoggingConfig

### *final class* atoti.LoggingConfig

The config describing how the session logs will be handled.

### Example

To stream the session logs to the Python process’ standard output:

```pycon theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
>>> import sys
>>> config = tt.LoggingConfig(destination=sys.stdout)
```

#### destination *: [Path](https://docs.python.org/3/library/pathlib.html#pathlib.Path) | [TextIO](https://docs.python.org/3/library/typing.html#typing.TextIO) | [TextIOBase](https://docs.python.org/3/library/io.html#io.TextIOBase) | [None](https://docs.python.org/3/library/constants.html#None)* *= None*

The place where the session logs will be written to.

If `None`, the logs will be written to `logs/server.log` in the session directory under `$ATOTI_HOME` (this environment variable itself defaults to `$HOME/.atoti`).

<Note>
  Unless an instance of [`io.TextIOBase`](https://docs.python.org/3/library/io.html#io.TextIOBase) is passed, the rolling policy is:

  * Maximum file size of 10MB.
  * Maximum history of 7 days.

  Once the maximum size is reached, logs are archived following the pattern `f"{destination}.{date}.{i}.gz"` where `date` is the creation date of the file in the `yyyy-MM-dd` format and `i` an integer incremented during the day.
</Note>
