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

# setLogLevel

> Changes the SDK log verbosity at runtime without reinitializing Portal.

**Function Signature**

```swift theme={null}
public func setLogLevel(_ level: PortalLogLevel)
```

**Parameters**

* **`level`**: The desired log verbosity. One of the `PortalLogLevel` enum cases:
  * **`.none`** — No output. This is the default.
  * **`.error`** — Failures only (failed transactions, network errors, binary crashes).
  * **`.warn`** — Non-fatal unexpected conditions (deprecated usage, retries, slow responses).
  * **`.info`** — Operational milestones (signing started, share generated, connection opened).
  * **`.debug`** — Full internals (request/response payloads, timing, state transitions).

Each level includes all levels above it in severity.

**Returns**

* `Void`

**Example Usage**

```swift theme={null}
import PortalSwift

do {
    let portal = try Portal(
      "YOUR_CLIENT_API_KEY",
      withRpcConfig: ["eip155:1": "https://mainnet.infura.io/v3/YOUR_INFURA_KEY"]
    )

    // Enable debug logging during development
    portal.setLogLevel(.debug)

    // Create wallet — all SDK log output is now visible
    let addresses = try await portal.createWallet()
    print("Ethereum address: \(addresses.ethereum)")
} catch {
    print("Error: \(error)")
}
```
