The Swift Package Index logo.Swift Package Index

Build Information

Successful build of OpenAPILoggingMiddleware, reference main (c7d045), with Swift 6.4 for macOS (SPM) on 24 Nov 2026 20:06:35 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/diyamantina/OpenAPILoggingMiddleware.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/diyamantina/OpenAPILoggingMiddleware
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c7d045d chore(rules): track rules-swift 2.29.0
Cloned https://github.com/diyamantina/OpenAPILoggingMiddleware.git
Revision (git rev-parse @):
c7d045dbf757bb9228ce18807b3c4dbf3865f226
SUCCESS checkout https://github.com/diyamantina/OpenAPILoggingMiddleware.git at main
Fetching https://github.com/apple/swift-openapi-runtime
Fetching https://github.com/apple/swift-log
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2407] Fetching swift-docc-plugin
[507/9745] Fetching swift-docc-plugin, swift-openapi-runtime
[4096/18329] Fetching swift-docc-plugin, swift-openapi-runtime, swift-log
Fetched https://github.com/apple/swift-log (0.92s)
Fetched https://github.com/apple/swift-openapi-runtime (0.92s)
Fetched https://github.com/swiftlang/swift-docc-plugin (0.92s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (10.09s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3867] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (0.81s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.50s)
Computing version for https://github.com/apple/swift-openapi-runtime
Computed https://github.com/apple/swift-openapi-runtime at 1.13.4 (0.58s)
Fetching https://github.com/apple/swift-http-types
[1/1990] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types (0.87s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.8.0 (1.47s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.17.2 (0.57s)
Creating working copy for https://github.com/apple/swift-openapi-runtime
Working copy of https://github.com/apple/swift-openapi-runtime resolved at 1.13.4
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.17.2
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.8.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "openapiloggingmiddleware",
      "name": "OpenAPILoggingMiddleware",
      "url": "https://github.com/diyamantina/OpenAPILoggingMiddleware.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/OpenAPILoggingMiddleware",
      "traits": [
        "default"
      ],
      "dependencies": [
        {
          "identity": "swift-openapi-runtime",
          "name": "swift-openapi-runtime",
          "url": "https://github.com/apple/swift-openapi-runtime",
          "version": "1.13.4",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-openapi-runtime",
          "traits": [
            "FullFoundation"
          ],
          "dependencies": [
            {
              "identity": "swift-http-types",
              "name": "swift-http-types",
              "url": "https://github.com/apple/swift-http-types",
              "version": "1.8.0",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-http-types",
              "traits": [
                "FoundationURL"
              ],
              "dependencies": [
              ]
            }
          ]
        },
        {
          "identity": "swift-log",
          "name": "swift-log",
          "url": "https://github.com/apple/swift-log",
          "version": "1.17.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
          "traits": [
          ],
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/diyamantina/OpenAPILoggingMiddleware.git
[1/234] Fetching openapiloggingmiddleware
Fetched https://github.com/diyamantina/OpenAPILoggingMiddleware.git (0.60s)
Fetching https://github.com/apple/swift-log from cache
Fetching https://github.com/apple/swift-openapi-runtime from cache
Fetched https://github.com/apple/swift-log from cache (0.50s)
Fetched https://github.com/apple/swift-openapi-runtime from cache (0.52s)
Computing version for https://github.com/apple/swift-openapi-runtime
Computed https://github.com/apple/swift-openapi-runtime at 1.13.4 (0.59s)
Fetching https://github.com/apple/swift-http-types from cache
Fetched https://github.com/apple/swift-http-types from cache (0.40s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.8.0 (0.47s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.17.2 (0.03s)
Creating working copy for https://github.com/diyamantina/OpenAPILoggingMiddleware.git
Working copy of https://github.com/diyamantina/OpenAPILoggingMiddleware.git resolved at main (c7d045d)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.17.2
Creating working copy for https://github.com/apple/swift-openapi-runtime
Working copy of https://github.com/apple/swift-openapi-runtime resolved at 1.13.4
Creating working copy for https://github.com/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.8.0
warning: '.resolve-product-dependencies': dependency 'openapiloggingmiddleware' is not used by any target
Found 2 product dependencies
  - swift-openapi-runtime
  - swift-log
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/diyamantina/OpenAPILoggingMiddleware.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0.app xcrun swift build --arch arm64
Building for debugging...
[Constructing description]
[Planning deferred tasks]
[37 / 70]
[39 / 72] Logging
[48 / 99]
[54 / 128]
[57 / 128]
[58 / 128]
[72 / 128]
[75 / 128] Logging
[82 / 128] Logging
[84 / 128]
[87 / 128] Logging
[90 / 128]
[91 / 128]
[92 / 128]
[103 / 128] HTTPTypes
[110 / 129] OpenAPIRuntime
[120 / 140] OpenAPIRuntime
[121 / 140] OpenAPIRuntime
[122 / 140] HTTPTypes
[123 / 140] OpenAPIRuntime
[130 / 141] OpenAPIRuntime
[130 / 141] OpenAPILoggingMiddleware
[134 / 155]
[146 / 155] OpenAPILoggingMiddleware
[152 / 155] OpenAPILoggingMiddleware
[154 / 155] OpenAPILoggingMiddleware
Build complete! (8.25 sec)
/Users/admin/builder/spi-builder-workspace/Sources/OpenAPILoggingMiddleware/ObserverLogHandler.swift:22:20: warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 20 | /// let middleware = LoggingMiddleware(logger: logger, ...)
 21 | /// ```
 22 | public final class ObserverLogHandler: LogHandler {
    |                    `- warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 23 |     /// Immutable snapshot of a single log event handed to the observer closure.
 24 |     public struct Event: Sendable {
Logging.LogHandler.log:3:15: note: 'log(event:)' declared here
1 | protocol LogHandler {
2 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
3 |   public func log(event: Logging.LogEvent)}
  |               `- note: 'log(event:)' declared here
4 |
Logging.LogHandler.log:2:6: note: requirement 'log(event:)' declared here
1 | protocol LogHandler {
2 | func log(event: Logging.LogEvent)}
  |      `- note: requirement 'log(event:)' declared here
3 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/OpenAPILoggingMiddleware/JSONFileLogHandler.swift:34:20: warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 32 | /// ### Creating the handler
 33 | /// - ``init(label:logFileURL:logPrefix:)``
 34 | public final class JSONFileLogHandler: LogHandler {
    |                    `- warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 35 |
 36 |     private let label: String
Logging.LogHandler.log:3:15: note: 'log(event:)' declared here
1 | protocol LogHandler {
2 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
3 |   public func log(event: Logging.LogEvent)}
  |               `- note: 'log(event:)' declared here
4 |
Logging.LogHandler.log:2:6: note: requirement 'log(event:)' declared here
1 | protocol LogHandler {
2 | func log(event: Logging.LogEvent)}
  |      `- note: requirement 'log(event:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenAPILoggingMiddleware/OSLogHandler.swift:35:20: warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 33 | /// - ``init(subsystem:category:logPrefix:)``
 34 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 35 | public final class OSLogHandler: LogHandler {
    |                    `- warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 36 |     private let osLogger: os.Logger
 37 |     private let label: String
Logging.LogHandler.log:3:15: note: 'log(event:)' declared here
1 | protocol LogHandler {
2 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
3 |   public func log(event: Logging.LogEvent)}
  |               `- note: 'log(event:)' declared here
4 |
Logging.LogHandler.log:2:6: note: requirement 'log(event:)' declared here
1 | protocol LogHandler {
2 | func log(event: Logging.LogEvent)}
  |      `- note: requirement 'log(event:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenAPILoggingMiddleware/ObserverLogHandler.swift:22:20: warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 20 | /// let middleware = LoggingMiddleware(logger: logger, ...)
 21 | /// ```
 22 | public final class ObserverLogHandler: LogHandler {
    |                    `- warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 23 |     /// Immutable snapshot of a single log event handed to the observer closure.
 24 |     public struct Event: Sendable {
Logging.LogHandler.log:3:15: note: 'log(event:)' declared here
1 | protocol LogHandler {
2 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
3 |   public func log(event: Logging.LogEvent)}
  |               `- note: 'log(event:)' declared here
4 |
Logging.LogHandler.log:2:6: note: requirement 'log(event:)' declared here
1 | protocol LogHandler {
2 | func log(event: Logging.LogEvent)}
  |      `- note: requirement 'log(event:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/OpenAPILoggingMiddleware/PrefixedStreamLogHandler.swift:31:20: warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 29 | /// ### Companion stream
 30 | /// - ``StandardOutputStream``
 31 | public final class PrefixedStreamLogHandler: LogHandler {
    |                    `- warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 32 |     private let label: String
 33 |     nonisolated(unsafe) private var _logLevel: Logger.Level = .info
Logging.LogHandler.log:3:15: note: 'log(event:)' declared here
1 | protocol LogHandler {
2 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
3 |   public func log(event: Logging.LogEvent)}
  |               `- note: 'log(event:)' declared here
4 |
Logging.LogHandler.log:2:6: note: requirement 'log(event:)' declared here
1 | protocol LogHandler {
2 | func log(event: Logging.LogEvent)}
  |      `- note: requirement 'log(event:)' declared here
3 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/OpenAPILoggingMiddleware/PrefixedStreamLogHandler.swift:31:20: warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 29 | /// ### Companion stream
 30 | /// - ``StandardOutputStream``
 31 | public final class PrefixedStreamLogHandler: LogHandler {
    |                    `- warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 32 |     private let label: String
 33 |     nonisolated(unsafe) private var _logLevel: Logger.Level = .info
Logging.LogHandler.log:3:15: note: 'log(event:)' declared here
1 | protocol LogHandler {
2 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
3 |   public func log(event: Logging.LogEvent)}
  |               `- note: 'log(event:)' declared here
4 |
Logging.LogHandler.log:2:6: note: requirement 'log(event:)' declared here
1 | protocol LogHandler {
2 | func log(event: Logging.LogEvent)}
  |      `- note: requirement 'log(event:)' declared here
3 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/OpenAPILoggingMiddleware/JSONFileLogHandler.swift:34:20: warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 32 | /// ### Creating the handler
 33 | /// - ``init(label:logFileURL:logPrefix:)``
 34 | public final class JSONFileLogHandler: LogHandler {
    |                    `- warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 35 |
 36 |     private let label: String
Logging.LogHandler.log:3:15: note: 'log(event:)' declared here
1 | protocol LogHandler {
2 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
3 |   public func log(event: Logging.LogEvent)}
  |               `- note: 'log(event:)' declared here
4 |
Logging.LogHandler.log:2:6: note: requirement 'log(event:)' declared here
1 | protocol LogHandler {
2 | func log(event: Logging.LogEvent)}
  |      `- note: requirement 'log(event:)' declared here
3 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/Users/admin/builder/spi-builder-workspace/Sources/OpenAPILoggingMiddleware/OSLogHandler.swift:35:20: warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 33 | /// - ``init(subsystem:category:logPrefix:)``
 34 | @available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
 35 | public final class OSLogHandler: LogHandler {
    |                    `- warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
 36 |     private let osLogger: os.Logger
 37 |     private let label: String
Logging.LogHandler.log:3:15: note: 'log(event:)' declared here
1 | protocol LogHandler {
2 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
3 |   public func log(event: Logging.LogEvent)}
  |               `- note: 'log(event:)' declared here
4 |
Logging.LogHandler.log:2:6: note: requirement 'log(event:)' declared here
1 | protocol LogHandler {
2 | func log(event: Logging.LogEvent)}
  |      `- note: requirement 'log(event:)' declared here
3 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-openapi-runtime",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-openapi-runtime"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swiftlang/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "OpenAPILoggingMiddleware",
  "name" : "OpenAPILoggingMiddleware",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenAPILoggingMiddleware",
      "targets" : [
        "OpenAPILoggingMiddleware"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenAPILoggingMiddlewareTests",
      "module_type" : "SwiftTarget",
      "name" : "OpenAPILoggingMiddlewareTests",
      "path" : "Tests/OpenAPILoggingMiddlewareTests",
      "product_dependencies" : [
        "OpenAPIRuntime",
        "Logging"
      ],
      "sources" : [
        "BodyLoggingPolicyTests.swift",
        "DateExtensionTests.swift",
        "HTTPFieldsExtensionTests.swift",
        "IntegrationTests.swift",
        "JSONFileLogHandlerTests.swift",
        "LoggingMiddlewareTests.swift",
        "ObserverLogHandlerTests.swift",
        "PrefixedStreamLogHandlerTests.swift",
        "PublicApiTests.swift",
        "RobustnessTests.swift",
        "StringExtensionTests.swift"
      ],
      "target_dependencies" : [
        "OpenAPILoggingMiddleware"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenAPILoggingMiddleware",
      "module_type" : "SwiftTarget",
      "name" : "OpenAPILoggingMiddleware",
      "path" : "Sources/OpenAPILoggingMiddleware",
      "product_dependencies" : [
        "OpenAPIRuntime",
        "Logging"
      ],
      "product_memberships" : [
        "OpenAPILoggingMiddleware"
      ],
      "sources" : [
        "BodyLoggingPolicy.swift",
        "HTTPFields+Extension.swift",
        "JSONFileLogHandler.swift",
        "LogMetadataKey.swift",
        "LoggingMiddleware.swift",
        "OSLogHandler.swift",
        "ObserverLogHandler.swift",
        "PrefixedStreamLogHandler.swift",
        "StateLock.swift",
        "String+Extension.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Done.