From 5d7d82bef8075c131fdced75b4df365c3bdfa7fe Mon Sep 17 00:00:00 2001 From: Filippos Sakellaropoulos Date: Wed, 16 Oct 2024 15:14:56 +0300 Subject: [PATCH] Logging section in README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 17d9950..b66d523 100644 --- a/README.md +++ b/README.md @@ -284,6 +284,17 @@ After the request is received the ``presentationSession.disclosedDocuments`` con }) ``` +## Logging +The SwiftLog library is used for logging. The library provides a default logger that logs to the console. The main app configures logging outputs such as file logging. +To use the logger create a logger instance with the desired label. The logger can be used to log messages with different log levels. +```swift +import Logging +// Create a logger with a label +let logger = Logger(label: "com.example.BestExampleApp.main") +// log an info message +logger.info("Hello World!") +``` + ## Reference Detailed documentation is provided in the DocC documentation [here](https://eu-digital-identity-wallet.github.io/eudi-lib-ios-wallet-kit/documentation/eudiwalletkit/)