Vapor: 4.17.0 Release

Release date:
July 14, 2020
Previous version:
4.16.0 (released July 14, 2020)
Magnitude:
54 Diff Delta
Contributors:
2 total committers
Data confidence:
Commits:

Top Contributors in 4.17.0

tancred
0xTim

Directory Browser for 4.17.0

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

This patch was authored by @tancred and released by @tanner0101.

Adds a new method for bootstrapping a custom log handler (#2348).

The new LoggingSystem.bootstrap method accepts a LogHandler factory. The detected logging level (configurable with --log or LOG_LEVEL) is passed to the closure.

LoggingSystem.bootstrap(from: &env) { logLevel in 
    MyLogHandler(logLevel: logLevel)
}

There is also a new helper for parsing Logger.Level from the environment.

let logLevel = Logger.Level.detect(from: &env)