mirror of
https://github.com/apple/swift-log
synced 2026-11-26 04:07:49 +00:00
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
32 lines
981 B
Swift
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"]
|
|
),
|
|
]
|
|
)
|