diff --git a/docs/Logging.md b/docs/Logging.md index 421a86e..bcdd501 100644 --- a/docs/Logging.md +++ b/docs/Logging.md @@ -1,6 +1,6 @@ # Logging -SDK uses `WDOLogger` class that prints to the console. +You can set up logging for the library using the `WDOLogger` class. Networking traffic is logged in its own logger described in the [networking library documentation](https://github.com/wultra/networking-apple). @@ -8,11 +8,16 @@ Networking traffic is logged in its own logger described in the [networking libr ### 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. | \ No newline at end of file +| 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`. \ No newline at end of file