Skip to content

Commit 1caf1cd

Browse files
committed
Migrate from WrkstrmLog to CommonLog dependency
Replaced all references to WrkstrmLog with CommonLog across documentation, package manifest, and source files. Updated dependency declarations and import statements to reflect the new logging package. This change aligns with the updated project structure and ensures consistency in logging dependencies.
1 parent 1b23c95 commit 1caf1cd

File tree

10 files changed

+15
-15
lines changed

10 files changed

+15
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ The format is based on Keep a Changelog and this project adheres to Semantic Ver
99
### Added
1010

1111
- Initial open-source release of CommonShell
12-
- Remote dependencies (CommonProcess >= 0.2.0, WrkstrmLog/Performance/Foundation on main)
12+
- Remote dependencies (CommonProcess >= 0.2.0, CommonLog/Performance/Foundation on main)
1313
- Linux CI workflow (build + test)
1414
- OSS policies: LICENSE (MIT), Code of Conduct, Contributing, Security, Owners

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Thanks for your interest in contributing!
1919
## Dependencies
2020

2121
- Core: CommonProcess (from 0.2.0)
22-
- Support: WrkstrmLog, WrkstrmFoundation, WrkstrmPerformance
22+
- Support: CommonLog, WrkstrmFoundation, WrkstrmPerformance
2323
- Argument parsing: Apple Swift Argument Parser
2424

2525
## Opening Issues and PRs

Package.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var commonShellBenchDependencies: [Target.Dependency] = [
2020
"CommonShellBenchSupport",
2121
.product(name: "WrkstrmPerformance", package: perfPackageName),
2222
.product(name: "ArgumentParser", package: "swift-argument-parser"),
23-
.product(name: "WrkstrmLog", package: "WrkstrmLog"),
23+
.product(name: "CommonLog", package: "common-log"),
2424
]
2525
// No Benchmark dependency; bench runs in reduced mode without extra metrics.
2626

@@ -63,7 +63,7 @@ let package = Package(
6363
dependencies: [
6464
.product(name: "CommonProcess", package: processPackageName),
6565
.product(name: "CommonProcessExecutionKit", package: processPackageName),
66-
.product(name: "WrkstrmLog", package: "WrkstrmLog"),
66+
.product(name: "CommonLog", package: "common-log"),
6767
],
6868
path: "sources/common-shell",
6969
),
@@ -72,7 +72,7 @@ let package = Package(
7272
dependencies: [
7373
"CommonShell",
7474
.product(name: "CommonProcessExecutionKit", package: processPackageName),
75-
.product(name: "WrkstrmLog", package: "WrkstrmLog"),
75+
.product(name: "CommonLog", package: "common-log"),
7676
.product(name: "WrkstrmFoundation", package: "WrkstrmFoundation"),
7777
.product(name: "ArgumentParser", package: "swift-argument-parser"),
7878
],
@@ -84,7 +84,7 @@ let package = Package(
8484
"CommonShell",
8585
"CommonShellBenchSupport",
8686
.product(name: "CommonProcessExecutionKit", package: processPackageName),
87-
.product(name: "WrkstrmLog", package: "WrkstrmLog"),
87+
.product(name: "CommonLog", package: "common-log"),
8888
],
8989
path: "tests/common-shell-tests",
9090
),
@@ -150,14 +150,14 @@ extension Package {
150150
static var local: Inject = .init(dependencies: [
151151
// Prefer local mono paths with identities matching remote repo names
152152
.package(path: "../common-process"),
153-
.package(name: "WrkstrmLog", path: "../../../../WrkstrmLog"),
153+
.package(name: "common-log", path: "../../../../common/domain/system/common-log"),
154154
.package(path: "../../../../wrkstrm-performance"),
155155
.package(name: "WrkstrmFoundation", path: "../../../../WrkstrmFoundation"),
156156
])
157157

158158
static var remote: Inject = .init(dependencies: [
159159
.package(url: "https://github.com/wrkstrm/common-process.git", from: "0.3.0"),
160-
.package(url: "https://github.com/wrkstrm/WrkstrmLog.git", from: "2.0.0"),
160+
.package(url: "https://github.com/wrkstrm/common-log.git", from: "2.0.0"),
161161
.package(url: "https://github.com/wrkstrm/wrkstrm-performance.git", from: "0.1.0"),
162162
.package(url: "https://github.com/wrkstrm/WrkstrmFoundation.git", from: "3.0.0"),
163163
])

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ MIT — see `LICENSE`.
125125
## Dependencies
126126

127127
- CommonProcess (>= 0.2.0)
128-
- WrkstrmLog/WrkstrmFoundation (>= 2.0.0)
128+
- CommonLog/WrkstrmFoundation (>= 2.0.0)
129129
- wrkstrm-performance (>= 0.1.0)
130130

131131
## CI

SPEC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
- `willStart(command: String, arguments: [String], workingDirectory: String, runnerName: String, requestId: String, startUptimeNs: UInt64)`
5656
- `didFinish(command: String, arguments: [String], workingDirectory: String, runnerName: String, requestId: String, status: ProcessExitStatus, processIdentifier: String?, startUptimeNs: UInt64, endUptimeNs: UInt64, stdoutPreview: String?, stderrPreview: String?)`
5757
- CommonShell forwards to `CommandSpec.instrumentation` (injected from `instrumentationKey`) and includes monotonic timestamps.
58-
- Runners emit WrkstrmLog entries:
58+
- Runners emit CommonLog entries:
5959
- DEBUG: structured start block
6060
- INFO: one‑line summary (status, duration, cwd, cmd)
6161
- DEBUG (verbose): truncated output block according to log options caps

sources/common-shell-arguments/CommonShellParsableArguments.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import CommonProcessExecutionKit
44
import CommonShell
55
import Foundation
66
import WrkstrmFoundation
7-
import WrkstrmLog
7+
import CommonLog
88

99
/// Protocol for types that expose common shell arguments
1010
public protocol CommonShellParsableArguments {

sources/common-shell-bench/BenchMetricsRecorder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import CommonProcess
22
import Foundation
3-
import WrkstrmLog
3+
import CommonLog
44

55
struct PerformanceRow {
66
let host: String

sources/common-shell-bench/MatrixCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import CommonProcessExecutionKit
44
import CommonShell
55
import CommonShellBenchSupport
66
import Foundation
7-
import WrkstrmLog
7+
import CommonLog
88

99
// MARK: - Matrix command (legacy iteration-based benchmark)
1010

sources/common-shell-bench/MetricsCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import CommonProcessExecutionKit
44
import CommonShell
55
import CommonShellBenchSupport
66
import Foundation
7-
import WrkstrmLog
7+
import CommonLog
88

99
// MARK: - Metrics command (per-run statistics)
1010

sources/common-shell/CommonShell+HostRun.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import CommonProcess
22
import CommonProcessExecutionKit
33
import Foundation
4-
import WrkstrmLog
4+
import CommonLog
55

66
extension CommonShell {
77
/// Run using an explicit execution host and executable identity.

0 commit comments

Comments
 (0)