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 |
---|
trace |
debug |
info |
notice |
warning - default |
error |
critical |
off |
Customize the log level
Use this function to modify the default logging level:
DYSdk.setLogLevel(level: .trace)
Updated 5 days ago