Skip to content

Commit

Permalink
Merge pull request #111 from niscy-eudiw/fixes
Browse files Browse the repository at this point in the history
Logging section in README.md
  • Loading branch information
phisakel authored Oct 16, 2024
2 parents 145d3dd + 5d7d82b commit 309ed05
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

Expand Down

0 comments on commit 309ed05

Please sign in to comment.