Skip to content

Commit

Permalink
Fixed documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kober32 committed Jul 2, 2024
1 parent 28169f4 commit 169df72
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions docs/Logging.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
# Logging

SDK uses `WDOLogger` class that prints to the console.
You can set up logging for the library using the `WDOLogger` class.

<!-- begin box info -->
Networking traffic is logged in its own logger described in the [networking library documentation](https://github.com/wultra/networking-apple).
<!-- end -->

### Verbosity Level

You can limit the amount of logged information via `verboseLevel` property.
You can limit the amount of logged information via the `verboseLevel` property.

| Level | Description |
| --- | --- |
| `off` | Silences all messages. |
| `errors` | Only errors will be printed to the debug console. |
| `warnings` _(default)_ | Errors and warnings will be printed to the debug console. |
| `all` | All messages will be printed to the debug console. |
| Level | Description |
| ---------------------- | ------------------------------------------------- |
| `off` | Silences all messages. |
| `errors` | Only errors will be logged. |
| `warnings` _(default)_ | Errors and warnings will be logged. |
| `info` | Error, warning and info messages will be logged. |
| `debug` | All messages will be logged. |

### Logger Delegate

In case you want to process logs on your own (for example log into a file or some cloud service), you can set `WDOLogger.delegate`.

0 comments on commit 169df72

Please sign in to comment.