---
updatedAt: 2026-01-22T11:09:14.000Z
---

# Swift SDK Log Levels

The SDK includes a built-in logger that uses the system logger to log various messages, such as debug information, warnings, and errors. You can configure the logging level to enable all logs, disable logging entirely, or set a custom level.

> **Note:** All logs are tagged with *tag:\[DY]* so you can filter them in your log system.

## Supported log levels

Each log level prints all log levels above it as well. The default logging level is `warning` in Swift, which means the logger prints logs with the following levels: `warning`, `error`, and `critical`.

| []()[Swift Log Levels](https://www.swift.org/documentation/server/guides/libraries/log-levels.html) |
| :-------------------------------------------------------------------------------------------------- |
| `trace`                                                                                             |
| `debug`                                                                                             |
| `info`                                                                                              |
| `notice`                                                                                            |
| `warning `- default                                                                                 |
| `error`                                                                                             |
| `critical`                                                                                          |
| `off`                                                                                               |

## Customize the log level

Use this function to modify the default logging level:

```swift Swift
 DYSdk.setLogLevel(level: .trace)
```