We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbf0365 commit f219409Copy full SHA for f219409
README.md
@@ -63,6 +63,7 @@ on each service.
63
64
```swift
65
import ServiceLifecycle
66
+import Logging
67
68
actor FooService: Service {
69
func run() async throws {
@@ -78,9 +79,12 @@ struct Application {
78
79
let service1 = FooService()
80
let service2 = FooService()
81
82
+ let logger = Logger(label: "Application")
83
+
84
let serviceGroup = ServiceGroup(
85
services: [service1, service2],
- gracefulShutdownSignals: [.sigterm]
86
+ gracefulShutdownSignals: [.sigterm],
87
+ logger: logger
88
)
89
90
try await serviceGroup.run()
0 commit comments