Skip to content

Commit 748fcf3

Browse files
authored
Prefix default logging keys (#149)
# Motivation To avoid colliding with logging keys of adopters we should prefix our default metadata logging keys. # Modification This PR prefixes our default logging keys with `sl-`.
1 parent f58dbbf commit 748fcf3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/ServiceLifecycle/ServiceGroupConfiguration.swift

+6-6
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ public struct ServiceGroupConfiguration: Sendable {
2323
public struct LoggingConfiguration: Sendable {
2424
public struct Keys: Sendable {
2525
/// The logging key used for logging the unix signal.
26-
public var signalKey = "signal"
26+
public var signalKey = "sl-signal"
2727
/// The logging key used for logging the graceful shutdown unix signals.
28-
public var gracefulShutdownSignalsKey = "gracefulShutdownSignals"
28+
public var gracefulShutdownSignalsKey = "sl-gracefulShutdownSignals"
2929
/// The logging key used for logging the cancellation unix signals.
30-
public var cancellationSignalsKey = "cancellationSignals"
30+
public var cancellationSignalsKey = "sl-cancellationSignals"
3131
/// The logging key used for logging the service.
32-
public var serviceKey = "service"
32+
public var serviceKey = "sl-service"
3333
/// The logging key used for logging the services.
34-
public var servicesKey = "services"
34+
public var servicesKey = "sl-services"
3535
/// The logging key used for logging an error.
36-
public var errorKey = "error"
36+
public var errorKey = "sl-error"
3737

3838
/// Initializes a new ``ServiceGroupConfiguration/LoggingConfiguration/Keys``.
3939
public init() {}

0 commit comments

Comments
 (0)