mirror of
https://github.com/apple/swift-log
synced 2026-11-24 03:47:49 +00:00
[contains work from @ianpartridge and @weissi] Motivation: For an easier migration path, it is probably useful to ship a `0.x` version of `swift-log` that is compatible with Swift 4. It can't use any of the features that Swift 5 brings and therefore the Swift 4 version will have a slightly reduced feature set: - log messages will be `String` - logging metadata values will be `String` only (no dictionaries, arrays, ...) That means, if you use the Swift 4 version of swift-log carefully (only use string literals), your migration to the Swift 5 version should only be a matter of changing your `Package.swift`. Modifications: - remove all string interpolation and use `String` directly Result: - we can release a 0.x version that supports Swift 4 Support Swift 4.1 (#40) * Support Swift 4.1 * Set swift-tools-version to 4.0
34 lines
918 B
Swift
34 lines
918 B
Swift
// swift-tools-version:4.0
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the Swift Logging API open source project
|
|
//
|
|
// Copyright (c) 2018-2019 Apple Inc. and the Swift Logging API project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of Swift Logging API project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "swift-log",
|
|
products: [
|
|
.library(name: "Logging", targets: ["Logging"]),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "Logging",
|
|
dependencies: []
|
|
),
|
|
.testTarget(
|
|
name: "LoggingTests",
|
|
dependencies: ["Logging"]
|
|
),
|
|
]
|
|
)
|