Protocol-Oriented Logging, or: Default Arguments in Swift Protocols – Ole Begemann
og method is to immediately forward to writeLogEntry, which contains the actual logic. Types that implement Logger have no reason to override log.
This is the complete PrintLogger type, adopting the protocol: