Conclusion
The basis of both the logger profiles and the loggers themselves are protocols, therefore making it easy to add additional profiles and loggers by creating new types that conform to these protocols. Protocol extensions were used to add functionality to types that conform to the protocol. These new types also automatically receive the functionality defined within the protocol extensions. Designing frameworks in this manner allows us to very easily add functionality and new features as we receive new requirements. It also allows the users of the framework to expand it to suit their needs.
When designing frameworks or applications, one thing that all good architects keep in the back of their mind is not only implementing the current ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access