Skip to content

Commit ab1872c

Browse files
committed
Make properties let instead of var in the logger
1 parent 7df6efb commit ab1872c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/JSONLogger.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ public struct JSONLogger : LogHandler {
4444
}
4545
public var metadataProvider: Logger.MetadataProvider?
4646

47-
public var outputFileDescriptor: FileDescriptor
48-
public var lineSeparator: Data
49-
public var prefix: Data
50-
public var suffix: Data
47+
public let outputFileDescriptor: FileDescriptor
48+
public let lineSeparator: Data
49+
public let prefix: Data
50+
public let suffix: Data
5151

5252
/**
5353
If `true`, the `Encodable` properties in the metadata will be encoded and kept structured in the resulting log line.

0 commit comments

Comments
 (0)