# Console Logging (reduce noise)
OPIK_CONSOLE_LOGGING_LEVEL="WARNING"
```

<Note>
  The Opik SDK manages its own logging configuration. Setting log levels through Python's standard `logging.getLogger("opik").setLevel()` will not work. Always use the `OPIK_CONSOLE_LOGGING_LEVEL` environment variable to control console output.
</Note>

#### Enabling File Logging for Debug

To enable debug mode with file logging, set these environment variables *before* importing `opik`:

```shell
export OPIK_FILE_LOGGING_LEVEL="DEBUG"
export OPIK_LOGGING_FILE=".tmp/opik-debug-$(date +%Y%m%d).log"
```

**Using with .env file:**

```dotenv