> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-wbdocs-1882.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# How do I turn off logging?

The command `wandb offline` sets the environment variable `WANDB_MODE=offline`, preventing data from syncing to the remote W\&B server. This action affects all projects, stopping the logging of data to W\&B servers.

To suppress warning messages, use the following code:

```python theme={null}
import logging

logger = logging.getLogger("wandb")
logger.setLevel(logging.WARNING)
```

***

<Badge stroke shape="pill" color="orange" size="md">[Logs](/support/models/tags/logs)</Badge>
