Skip to content

Swift 4.0 and LogMessages

Compare
Choose a tag to compare
@AtomicCat AtomicCat released this 30 Aug 21:10

Released on 2017-08-30. All issues associated with this milestone can be found using this filter.

Added

  • Support for structured messages and simplified Logger setup.
  • New package file for Willow to support the Swift Package Manager.

Updated

  • The Xcode project and source code to Swift 4.0.
  • The log level enabled check to run prior to acquiring the lock or async dispatch queue resulting in a small performance gain.
  • The example frameworks to not have a default logger instance.
  • The example app configuration logic to match the new APIs.
  • The LogMessageWriter protocol by splitting it into two new protocols: LogWriter and LogModifierWriter. The former is a basic writer. The latter is a writer that also accepts an array of modifiers to apply to incoming messages.
  • Example frameworks to show intended usage of the new LogMessage APIs.

Removed

  • LoggerConfiguration entirely. Logger construction now takes a log level, writers array, and execution method which greatly simplifies setup and usage.