For AI agents: this page in Markdown: https://www.pubnub.com/docs/chat/swift-chat-sdk/build/features/error-logging.md. Documentation index: https://www.pubnub.com/llms-full.txt.
Error logging
How to enable logging
Logging is disabled by default (LogLevel.off). Available logging options:
| Value | Description |
|---|---|
error | Used for logging error messages. |
warn | Used for logging warning messages. |
info | Used for logging informational messages. |
debug | Used for logging debug messages. |
verbose | The most detailed level of logging. It includes everything at the debug level and more fine-grained information. |
Set LogLevel in ChatConfiguration to enable logging.
1