# Your Opik code here - console will be quiet, debug logs go to file
```

### TypeScript SDK Debug Mode

The TypeScript SDK uses structured logging with configurable levels:

**Available log levels:** `SILLY`, `TRACE`, `DEBUG`, `INFO` (default), `WARN`, `ERROR`, `FATAL`

**Enable debug logging:**

```bash
export OPIK_LOG_LEVEL="DEBUG"
```

**Or in .env file:**

```dotenv
OPIK_LOG_LEVEL="DEBUG"
```

**Programmatic control:**

```typescript
import { setLoggerLevel, disableLogger } from "opik";

// Set log level
setLoggerLevel("DEBUG");

// Disable logging entirely
disableLogger();
```

## Advanced Configuration

### Python SDK Advanced Options

#### HTTP Client Configuration

The Opik Python SDK uses the [httpx](https://www.python-httpx.org/) library to make HTTP requests.
The default configuration applied to the HTTP client is suitable for most use cases, but you can customize
it by registering a custom httpx client hook as in following example:

```python
import opik.hooks

def custom_auth_client_hook(client: httpx.Client) -> None:
    client.auth = CustomAuth()

hook = opik.hooks.HttpxClientHook(
    client_init_arguments={"trust_env": False},
    client_modifier=custom_auth_client_hook,
)
opik.hooks.add_httpx_client_hook(hook)