Files
swift-log/Package.swift
T
tomer doron 9027df5f03 refactor examples and remove dependecy on foundation
motivation:
* due to the low level nature of the library we prefer not to force-load foundation
* help reviewers diffrentiate between examples of usage vs implementation, and add more realistic usage and implementations examples

changes:
* remove foundation from Logging module, replace with c based locks and time functions
* rewrite usage examples to be more realistic
* add example of an implementation that writes to files
* add example of an implementation that is config driven
* rename warn -> warning
2019-01-05 02:03:44 -08:00

32 lines
981 B
Swift

// swift-tools-version:4.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "swift-server-logging-api-proposal",
products: [
.library(name: "Logging", targets: ["Logging"]),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "Logging",
dependencies: []
),
.target(
name: "ExampleImplementation",
dependencies: ["Logging"]
),
.target(
name: "ExampleUsage",
dependencies: ["Logging", "ExampleImplementation"]
),
.testTarget(
name: "LoggingTests",
dependencies: ["Logging"]
),
]
)