We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c98a4ed commit d3e3666Copy full SHA for d3e3666
Sources/App/Core/CFRayRouteLoggingMiddleware.swift
@@ -12,14 +12,13 @@
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
-import Dependencies
16
import Vapor
17
18
19
// Replica of the Vapor RouteLoggingMiddleware that's tweaked to explicitly expose the cf-ray header in the logger metadata for the request.
20
public final class CFRayRouteLoggingMiddleware: Middleware {
21
public let logLevel: Logger.Level
22
-
+
23
public init(logLevel: Logger.Level = .info) {
24
self.logLevel = logLevel
25
}
0 commit comments