Build Information
Successful build of SimpleLogging, reference 0.5.2 (efdee0
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 22:30:48 UTC.
Swift 6 data race errors: 13
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/RougeWare/Swift-Simple-Logging.git
Reference: 0.5.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/RougeWare/Swift-Simple-Logging
* tag 0.5.2 -> FETCH_HEAD
HEAD is now at efdee02 Merge pull request #18 from RougeWare/feature/update/LazyContainers-repo-rename-from-LazyPatterns
Cloned https://github.com/RougeWare/Swift-Simple-Logging.git
Revision (git rev-parse @):
efdee028f383b0f3c39646a76e16bdd30693f53b
SUCCESS checkout https://github.com/RougeWare/Swift-Simple-Logging.git at 0.5.2
Fetching https://github.com/RougeWare/Swift-Function-Tools.git
Fetching https://github.com/RougeWare/Swift-Lazy-Containers.git
[1/346] Fetching swift-lazy-containers
[43/467] Fetching swift-lazy-containers, swift-function-tools
Fetched https://github.com/RougeWare/Swift-Function-Tools.git from cache (0.81s)
Fetched https://github.com/RougeWare/Swift-Lazy-Containers.git from cache (0.81s)
Computing version for https://github.com/RougeWare/Swift-Function-Tools.git
Computed https://github.com/RougeWare/Swift-Function-Tools.git at 1.2.4 (0.62s)
Computing version for https://github.com/RougeWare/Swift-Lazy-Containers.git
Computed https://github.com/RougeWare/Swift-Lazy-Containers.git at 4.1.0 (0.62s)
Creating working copy for https://github.com/RougeWare/Swift-Function-Tools.git
Working copy of https://github.com/RougeWare/Swift-Function-Tools.git resolved at 1.2.4
Creating working copy for https://github.com/RougeWare/Swift-Lazy-Containers.git
Working copy of https://github.com/RougeWare/Swift-Lazy-Containers.git resolved at 4.1.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swift-simple-logging",
"name": "SimpleLogging",
"url": "https://github.com/RougeWare/Swift-Simple-Logging.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Swift-Simple-Logging",
"dependencies": [
{
"identity": "swift-lazy-containers",
"name": "LazyContainers",
"url": "https://github.com/RougeWare/Swift-Lazy-Containers.git",
"version": "4.1.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Swift-Lazy-Containers",
"dependencies": [
]
},
{
"identity": "swift-function-tools",
"name": "FunctionTools",
"url": "https://github.com/RougeWare/Swift-Function-Tools.git",
"version": "1.2.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Swift-Function-Tools",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/RougeWare/Swift-Simple-Logging.git
[1/376] Fetching swift-simple-logging
Fetched https://github.com/RougeWare/Swift-Simple-Logging.git from cache (0.78s)
Fetching https://github.com/RougeWare/Swift-Lazy-Containers.git from cache
Fetching https://github.com/RougeWare/Swift-Function-Tools.git from cache
Fetched https://github.com/RougeWare/Swift-Function-Tools.git from cache (0.54s)
Fetched https://github.com/RougeWare/Swift-Lazy-Containers.git from cache (0.54s)
Computing version for https://github.com/RougeWare/Swift-Function-Tools.git
Computed https://github.com/RougeWare/Swift-Function-Tools.git at 1.2.4 (0.02s)
Computing version for https://github.com/RougeWare/Swift-Lazy-Containers.git
Computed https://github.com/RougeWare/Swift-Lazy-Containers.git at 4.1.0 (0.02s)
Creating working copy for https://github.com/RougeWare/Swift-Function-Tools.git
Working copy of https://github.com/RougeWare/Swift-Function-Tools.git resolved at 1.2.4
Creating working copy for https://github.com/RougeWare/Swift-Lazy-Containers.git
Working copy of https://github.com/RougeWare/Swift-Lazy-Containers.git resolved at 4.1.0
Creating working copy for https://github.com/RougeWare/Swift-Simple-Logging.git
Working copy of https://github.com/RougeWare/Swift-Simple-Logging.git resolved at 0.5.2 (efdee02)
warning: '.resolve-product-dependencies': dependency 'swift-simple-logging' is not used by any target
Found 2 product dependencies
- LazyContainers
- FunctionTools
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/RougeWare/Swift-Simple-Logging.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/8] Write sources
[3/8] Write swift-version--7754E27361AE5C74.txt
[5/22] Compiling LazyContainers LazyContainers.swift
[6/22] Compiling FunctionTools !.swift
[7/22] Emitting module FunctionTools
[8/22] Compiling LazyContainers LazyContainer + Codable.swift
[9/22] Emitting module LazyContainers
[10/22] Compiling LazyContainers LazyContainer + Hashable.swift
[11/22] Compiling LazyContainers LazyContainer + Equatable.swift
[12/22] Compiling FunctionTools Echo.swift
[13/22] Compiling FunctionTools Constant.swift
[14/22] Compiling FunctionTools Function types.swift
[15/22] Compiling FunctionTools Null functions.swift
[16/22] Compiling FunctionTools Blackholes.swift
[17/22] Compiling FunctionTools Call.swift
[18/22] Compiling FunctionTools Curry.swift
[19/34] Compiling SimpleLogging LogMessage.swift
[20/35] Compiling SimpleLogging LogManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogManager.swift:23:24: warning: static property 'originalDefaultChannels' is not concurrency-safe because non-'Sendable' type '[LogChannel]' may have shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// The original set of default channels, kept here so we can reset the default channels
23 | private static let originalDefaultChannels = [try! LogChannel(name: "Swift.print", location: .swiftPrintDefault)]
| |- warning: static property 'originalDefaultChannels' is not concurrency-safe because non-'Sendable' type '[LogChannel]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'originalDefaultChannels' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// The default set of channels for logging. Changing this will redirect logs which don't specify a channel
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogChannel.swift:15:14: note: class 'LogChannel' does not conform to the 'Sendable' protocol
13 |
14 | /// The channel to which to send log messages
15 | public class LogChannel {
| `- note: class 'LogChannel' does not conform to the 'Sendable' protocol
16 |
17 |
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:74:16: warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
72 |
73 | /// Info logging - Usually the lowest level that appears in user logs, information for power-users who look at logs
74 | static let info = LogSeverity(severityValue: 3, name: (short: "i", long: "Info", emoji: "ℹ️"))
| |- warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'info' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 |
76 | /// Warning logging - Describing potential future problems. Future might be the next line, the next release, etc.
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogManager.swift:26:16: warning: static property 'defaultChannels' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// The default set of channels for logging. Changing this will redirect logs which don't specify a channel
26 | static var defaultChannels = originalDefaultChannels
| |- warning: static property 'defaultChannels' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultChannels' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultChannels' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 |
[21/35] Compiling SimpleLogging LogMessageProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogMessageProtocol.swift:70:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'LoggingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// Options to customize a log line
60 | public struct LoggingOptions {
| `- note: consider making struct 'LoggingOptions' conform to the 'Sendable' protocol
61 |
62 | /// The style of the severity part of a log line
:
68 | public extension LoggingOptions {
69 | /// The default logging options
70 | static let `default` = LoggingOptions(severityStyle: .emoji)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'LoggingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogMessageProtocol.swift:75:13: warning: let 'defaultDateFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
73 |
74 |
75 | private let defaultDateFormatter: ISO8601DateFormatter = {
| |- warning: let 'defaultDateFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultDateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | let defaultDateFormatter = ISO8601DateFormatter()
77 |
Foundation.ISO8601DateFormatter:2:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.12, *)
2 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
3 | open var timeZone: TimeZone! { get set }
4 | open var formatOptions: ISO8601DateFormatter.Options { get set }
[22/35] Emitting module SimpleLogging
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/CombinedLogMessage.swift:16:13: warning: let 'logLineInitialValueBeforeLazyInitializerCanBeCreated' is not concurrency-safe because non-'Sendable' type 'Lazy<String>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | // Swift made me do this :c
15 | /// The message printed if something tries to log this message before it's done initializing
16 | private let logLineInitialValueBeforeLazyInitializerCanBeCreated = Lazy(wrappedValue: """
| `- warning: let 'logLineInitialValueBeforeLazyInitializerCanBeCreated' is not concurrency-safe because non-'Sendable' type 'Lazy<String>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | Async error. Please file a bug report at https://github.com/RougeWare/Swift-Simple-Logging/issues/new/
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Swift-Lazy-Containers/Sources/LazyContainers/LazyContainers.swift:192:15: note: generic struct 'Lazy' does not conform to the 'Sendable' protocol
190 | /// language's built-in `lazy` instead wherever possible.
191 | @propertyWrapper
192 | public struct Lazy<Value>: LazyContainer {
| `- note: generic struct 'Lazy' does not conform to the 'Sendable' protocol
193 |
194 | /// Privatizes the inner-workings of this functional lazy container
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/CombinedLogMessage.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LazyContainers'
8 |
9 | import Foundation
10 | import LazyContainers
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LazyContainers'
11 |
12 |
:
14 | // Swift made me do this :c
15 | /// The message printed if something tries to log this message before it's done initializing
16 | private let logLineInitialValueBeforeLazyInitializerCanBeCreated = Lazy(wrappedValue: """
| |- note: annotate 'logLineInitialValueBeforeLazyInitializerCanBeCreated' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | Async error. Please file a bug report at https://github.com/RougeWare/Swift-Simple-Logging/issues/new/
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/Extensions/Foundation/FileHandle + TextOutputStream.swift:13:1: warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
11 |
12 |
13 | extension FileHandle: TextOutputStream {
| |- warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
14 | public func write(_ string: String) {
15 | guard let data = string.data(using: .utf8) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/Extensions/Foundation/FileHandle + TextOutputStream.swift:22:14: warning: var 'standardOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 |
22 | internal var standardOutput = FileHandle.standardOutput
| |- warning: var 'standardOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standardOutput' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standardOutput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | internal var standardError = FileHandle.standardError
24 |
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/Extensions/Foundation/FileHandle + TextOutputStream.swift:23:14: warning: var 'standardError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | internal var standardOutput = FileHandle.standardOutput
23 | internal var standardError = FileHandle.standardError
| |- warning: var 'standardError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standardError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standardError' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:74:16: warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
72 |
73 | /// Info logging - Usually the lowest level that appears in user logs, information for power-users who look at logs
74 | static let info = LogSeverity(severityValue: 3, name: (short: "i", long: "Info", emoji: "ℹ️"))
| |- warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'info' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 |
76 | /// Warning logging - Describing potential future problems. Future might be the next line, the next release, etc.
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogManager.swift:23:24: warning: static property 'originalDefaultChannels' is not concurrency-safe because non-'Sendable' type '[LogChannel]' may have shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// The original set of default channels, kept here so we can reset the default channels
23 | private static let originalDefaultChannels = [try! LogChannel(name: "Swift.print", location: .swiftPrintDefault)]
| |- warning: static property 'originalDefaultChannels' is not concurrency-safe because non-'Sendable' type '[LogChannel]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'originalDefaultChannels' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// The default set of channels for logging. Changing this will redirect logs which don't specify a channel
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogChannel.swift:15:14: note: class 'LogChannel' does not conform to the 'Sendable' protocol
13 |
14 | /// The channel to which to send log messages
15 | public class LogChannel {
| `- note: class 'LogChannel' does not conform to the 'Sendable' protocol
16 |
17 |
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogManager.swift:26:16: warning: static property 'defaultChannels' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// The default set of channels for logging. Changing this will redirect logs which don't specify a channel
26 | static var defaultChannels = originalDefaultChannels
| |- warning: static property 'defaultChannels' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultChannels' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultChannels' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 |
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogMessageProtocol.swift:70:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'LoggingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | /// Options to customize a log line
60 | public struct LoggingOptions {
| `- note: consider making struct 'LoggingOptions' conform to the 'Sendable' protocol
61 |
62 | /// The style of the severity part of a log line
:
68 | public extension LoggingOptions {
69 | /// The default logging options
70 | static let `default` = LoggingOptions(severityStyle: .emoji)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'LoggingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogMessageProtocol.swift:75:13: warning: let 'defaultDateFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
73 |
74 |
75 | private let defaultDateFormatter: ISO8601DateFormatter = {
| |- warning: let 'defaultDateFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultDateFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | let defaultDateFormatter = ISO8601DateFormatter()
77 |
Foundation.ISO8601DateFormatter:2:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.12, *)
2 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
3 | open var timeZone: TimeZone! { get set }
4 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:68:16: warning: static property 'verbose' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
66 | public extension LogSeverity {
67 | /// Verbose logging - The lowest severity; anything and everything might be logged at this level
68 | static let verbose = LogSeverity(severityValue: 1, name: (short: "v", long: "Verbose", emoji: "💬"))
| |- warning: static property 'verbose' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'verbose' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 |
70 | /// Debug logging - Usually not included in user logs, but helpful messages for debugging issues in the field
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:71:16: warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
69 |
70 | /// Debug logging - Usually not included in user logs, but helpful messages for debugging issues in the field
71 | static let debug = LogSeverity(severityValue: 2, name: (short: "d", long: "Debug", emoji: "👩🏾💻"))
| |- warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'debug' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// Info logging - Usually the lowest level that appears in user logs, information for power-users who look at logs
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:77:16: warning: static property 'warning' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
75 |
76 | /// Warning logging - Describing potential future problems. Future might be the next line, the next release, etc.
77 | static let warning = LogSeverity(severityValue: 4, name: (short: "w", long: "Warning", emoji: "⚠️"))
| |- warning: static property 'warning' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'warning' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 |
79 | /// Error logging - Problems that just happened. A server log might only print lines of this severity or higher.
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:80:16: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
78 |
79 | /// Error logging - Problems that just happened. A server log might only print lines of this severity or higher.
80 | static let error = LogSeverity(severityValue: 5, name: (short: "e", long: "Error", emoji: "🆘"))
| |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'error' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 |
82 | /// Fatal logging - The only fatal lines in a log file should be the last lines, in the event of a crash
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:83:16: warning: static property 'fatal' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
81 |
82 | /// Fatal logging - The only fatal lines in a log file should be the last lines, in the event of a crash
83 | static let fatal = LogSeverity(severityValue: 1000, name: (short: "f", long: "Fatal", emoji: "🚨"))
| |- warning: static property 'fatal' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fatal' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 | }
85 |
[23/35] Compiling SimpleLogging CombinedLoggable.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/Extensions/Foundation/FileHandle + TextOutputStream.swift:13:1: warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
11 |
12 |
13 | extension FileHandle: TextOutputStream {
| |- warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
14 | public func write(_ string: String) {
15 | guard let data = string.data(using: .utf8) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/Extensions/Foundation/FileHandle + TextOutputStream.swift:22:14: warning: var 'standardOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 |
22 | internal var standardOutput = FileHandle.standardOutput
| |- warning: var 'standardOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standardOutput' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standardOutput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | internal var standardError = FileHandle.standardError
24 |
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/Extensions/Foundation/FileHandle + TextOutputStream.swift:23:14: warning: var 'standardError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | internal var standardOutput = FileHandle.standardOutput
23 | internal var standardError = FileHandle.standardError
| |- warning: var 'standardError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standardError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standardError' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
[24/35] Compiling SimpleLogging FileHandle + TextOutputStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/Extensions/Foundation/FileHandle + TextOutputStream.swift:13:1: warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
11 |
12 |
13 | extension FileHandle: TextOutputStream {
| |- warning: extension declares a conformance of imported type 'FileHandle' to imported protocol 'TextOutputStream'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
14 | public func write(_ string: String) {
15 | guard let data = string.data(using: .utf8) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/Extensions/Foundation/FileHandle + TextOutputStream.swift:22:14: warning: var 'standardOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 |
22 | internal var standardOutput = FileHandle.standardOutput
| |- warning: var 'standardOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standardOutput' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standardOutput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | internal var standardError = FileHandle.standardError
24 |
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/Extensions/Foundation/FileHandle + TextOutputStream.swift:23:14: warning: var 'standardError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | internal var standardOutput = FileHandle.standardOutput
23 | internal var standardError = FileHandle.standardError
| |- warning: var 'standardError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standardError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standardError' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
[25/35] Compiling SimpleLogging CodeLogMessage.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/CombinedLogMessage.swift:16:13: warning: let 'logLineInitialValueBeforeLazyInitializerCanBeCreated' is not concurrency-safe because non-'Sendable' type 'Lazy<String>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | // Swift made me do this :c
15 | /// The message printed if something tries to log this message before it's done initializing
16 | private let logLineInitialValueBeforeLazyInitializerCanBeCreated = Lazy(wrappedValue: """
| `- warning: let 'logLineInitialValueBeforeLazyInitializerCanBeCreated' is not concurrency-safe because non-'Sendable' type 'Lazy<String>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | Async error. Please file a bug report at https://github.com/RougeWare/Swift-Simple-Logging/issues/new/
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Swift-Lazy-Containers/Sources/LazyContainers/LazyContainers.swift:192:15: note: generic struct 'Lazy' does not conform to the 'Sendable' protocol
190 | /// language's built-in `lazy` instead wherever possible.
191 | @propertyWrapper
192 | public struct Lazy<Value>: LazyContainer {
| `- note: generic struct 'Lazy' does not conform to the 'Sendable' protocol
193 |
194 | /// Privatizes the inner-workings of this functional lazy container
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/CombinedLogMessage.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LazyContainers'
8 |
9 | import Foundation
10 | import LazyContainers
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LazyContainers'
11 |
12 |
:
14 | // Swift made me do this :c
15 | /// The message printed if something tries to log this message before it's done initializing
16 | private let logLineInitialValueBeforeLazyInitializerCanBeCreated = Lazy(wrappedValue: """
| |- note: annotate 'logLineInitialValueBeforeLazyInitializerCanBeCreated' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | Async error. Please file a bug report at https://github.com/RougeWare/Swift-Simple-Logging/issues/new/
[26/35] Compiling SimpleLogging CombinedLogMessage.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/CombinedLogMessage.swift:16:13: warning: let 'logLineInitialValueBeforeLazyInitializerCanBeCreated' is not concurrency-safe because non-'Sendable' type 'Lazy<String>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | // Swift made me do this :c
15 | /// The message printed if something tries to log this message before it's done initializing
16 | private let logLineInitialValueBeforeLazyInitializerCanBeCreated = Lazy(wrappedValue: """
| `- warning: let 'logLineInitialValueBeforeLazyInitializerCanBeCreated' is not concurrency-safe because non-'Sendable' type 'Lazy<String>' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | Async error. Please file a bug report at https://github.com/RougeWare/Swift-Simple-Logging/issues/new/
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Swift-Lazy-Containers/Sources/LazyContainers/LazyContainers.swift:192:15: note: generic struct 'Lazy' does not conform to the 'Sendable' protocol
190 | /// language's built-in `lazy` instead wherever possible.
191 | @propertyWrapper
192 | public struct Lazy<Value>: LazyContainer {
| `- note: generic struct 'Lazy' does not conform to the 'Sendable' protocol
193 |
194 | /// Privatizes the inner-workings of this functional lazy container
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/CombinedLogMessage.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LazyContainers'
8 |
9 | import Foundation
10 | import LazyContainers
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LazyContainers'
11 |
12 |
:
14 | // Swift made me do this :c
15 | /// The message printed if something tries to log this message before it's done initializing
16 | private let logLineInitialValueBeforeLazyInitializerCanBeCreated = Lazy(wrappedValue: """
| |- note: annotate 'logLineInitialValueBeforeLazyInitializerCanBeCreated' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | Async error. Please file a bug report at https://github.com/RougeWare/Swift-Simple-Logging/issues/new/
[27/35] Compiling SimpleLogging LoggableError.swift
[28/35] Compiling SimpleLogging Loggable.swift
[29/35] Compiling SimpleLogging LogSeverity.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:68:16: warning: static property 'verbose' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
66 | public extension LogSeverity {
67 | /// Verbose logging - The lowest severity; anything and everything might be logged at this level
68 | static let verbose = LogSeverity(severityValue: 1, name: (short: "v", long: "Verbose", emoji: "💬"))
| |- warning: static property 'verbose' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'verbose' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 |
70 | /// Debug logging - Usually not included in user logs, but helpful messages for debugging issues in the field
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:71:16: warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
69 |
70 | /// Debug logging - Usually not included in user logs, but helpful messages for debugging issues in the field
71 | static let debug = LogSeverity(severityValue: 2, name: (short: "d", long: "Debug", emoji: "👩🏾💻"))
| |- warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'debug' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// Info logging - Usually the lowest level that appears in user logs, information for power-users who look at logs
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:74:16: warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
72 |
73 | /// Info logging - Usually the lowest level that appears in user logs, information for power-users who look at logs
74 | static let info = LogSeverity(severityValue: 3, name: (short: "i", long: "Info", emoji: "ℹ️"))
| |- warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'info' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 |
76 | /// Warning logging - Describing potential future problems. Future might be the next line, the next release, etc.
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:77:16: warning: static property 'warning' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
75 |
76 | /// Warning logging - Describing potential future problems. Future might be the next line, the next release, etc.
77 | static let warning = LogSeverity(severityValue: 4, name: (short: "w", long: "Warning", emoji: "⚠️"))
| |- warning: static property 'warning' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'warning' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 |
79 | /// Error logging - Problems that just happened. A server log might only print lines of this severity or higher.
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:80:16: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
78 |
79 | /// Error logging - Problems that just happened. A server log might only print lines of this severity or higher.
80 | static let error = LogSeverity(severityValue: 5, name: (short: "e", long: "Error", emoji: "🆘"))
| |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'error' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 |
82 | /// Fatal logging - The only fatal lines in a log file should be the last lines, in the event of a crash
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:83:16: warning: static property 'fatal' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
81 |
82 | /// Fatal logging - The only fatal lines in a log file should be the last lines, in the event of a crash
83 | static let fatal = LogSeverity(severityValue: 1000, name: (short: "f", long: "Fatal", emoji: "🚨"))
| |- warning: static property 'fatal' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fatal' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 | }
85 |
[30/35] Compiling SimpleLogging LogChannel.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:74:16: warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
72 |
73 | /// Info logging - Usually the lowest level that appears in user logs, information for power-users who look at logs
74 | static let info = LogSeverity(severityValue: 3, name: (short: "i", long: "Info", emoji: "ℹ️"))
| |- warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'info' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 |
76 | /// Warning logging - Describing potential future problems. Future might be the next line, the next release, etc.
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/Extensions/Foundation/FileHandle + TextOutputStream.swift:22:14: warning: var 'standardOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 |
22 | internal var standardOutput = FileHandle.standardOutput
| |- warning: var 'standardOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standardOutput' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standardOutput' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | internal var standardError = FileHandle.standardError
24 |
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/Extensions/Foundation/FileHandle + TextOutputStream.swift:23:14: warning: var 'standardError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | internal var standardOutput = FileHandle.standardOutput
23 | internal var standardError = FileHandle.standardError
| |- warning: var 'standardError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'standardError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'standardError' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
[31/35] Compiling SimpleLogging Simple Logging.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogManager.swift:26:16: warning: static property 'defaultChannels' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// The default set of channels for logging. Changing this will redirect logs which don't specify a channel
26 | static var defaultChannels = originalDefaultChannels
| |- warning: static property 'defaultChannels' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultChannels' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultChannels' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 |
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:68:16: warning: static property 'verbose' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
66 | public extension LogSeverity {
67 | /// Verbose logging - The lowest severity; anything and everything might be logged at this level
68 | static let verbose = LogSeverity(severityValue: 1, name: (short: "v", long: "Verbose", emoji: "💬"))
| |- warning: static property 'verbose' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'verbose' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 |
70 | /// Debug logging - Usually not included in user logs, but helpful messages for debugging issues in the field
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:71:16: warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
69 |
70 | /// Debug logging - Usually not included in user logs, but helpful messages for debugging issues in the field
71 | static let debug = LogSeverity(severityValue: 2, name: (short: "d", long: "Debug", emoji: "👩🏾💻"))
| |- warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'debug' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// Info logging - Usually the lowest level that appears in user logs, information for power-users who look at logs
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:74:16: warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
72 |
73 | /// Info logging - Usually the lowest level that appears in user logs, information for power-users who look at logs
74 | static let info = LogSeverity(severityValue: 3, name: (short: "i", long: "Info", emoji: "ℹ️"))
| |- warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'info' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 |
76 | /// Warning logging - Describing potential future problems. Future might be the next line, the next release, etc.
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:77:16: warning: static property 'warning' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
75 |
76 | /// Warning logging - Describing potential future problems. Future might be the next line, the next release, etc.
77 | static let warning = LogSeverity(severityValue: 4, name: (short: "w", long: "Warning", emoji: "⚠️"))
| |- warning: static property 'warning' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'warning' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 |
79 | /// Error logging - Problems that just happened. A server log might only print lines of this severity or higher.
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:80:16: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
78 |
79 | /// Error logging - Problems that just happened. A server log might only print lines of this severity or higher.
80 | static let error = LogSeverity(severityValue: 5, name: (short: "e", long: "Error", emoji: "🆘"))
| |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'error' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 |
82 | /// Fatal logging - The only fatal lines in a log file should be the last lines, in the event of a crash
/Users/admin/builder/spi-builder-workspace/Sources/SimpleLogging/LogSeverity.swift:83:16: warning: static property 'fatal' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// How severe a log message is
17 | public struct LogSeverity {
| `- note: consider making struct 'LogSeverity' conform to the 'Sendable' protocol
18 |
19 | /// Allows two severities to be compared
:
81 |
82 | /// Fatal logging - The only fatal lines in a log file should be the last lines, in the event of a crash
83 | static let fatal = LogSeverity(severityValue: 1000, name: (short: "f", long: "Fatal", emoji: "🚨"))
| |- warning: static property 'fatal' is not concurrency-safe because non-'Sendable' type 'LogSeverity' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fatal' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 | }
85 |
[31/35] Write Objects.LinkFileList
[33/35] Linking libSimpleLogging_dynamic.dylib
[34/35] Linking libSimpleLoggingDynamic.dylib
Build complete! (22.06s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-lazy-containers",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/RougeWare/Swift-Lazy-Containers.git"
},
{
"identity" : "swift-function-tools",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.3",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/RougeWare/Swift-Function-Tools.git"
}
],
"manifest_display_name" : "SimpleLogging",
"name" : "SimpleLogging",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
},
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "watchos",
"version" : "4.0"
},
{
"name" : "tvos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "SimpleLogging",
"targets" : [
"SimpleLogging"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SimpleLogging_dynamic",
"targets" : [
"SimpleLogging"
],
"type" : {
"library" : [
"dynamic"
]
}
},
{
"name" : "SimpleLoggingDynamic",
"targets" : [
"SimpleLogging"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"targets" : [
{
"c99name" : "SimpleLoggingTests",
"module_type" : "SwiftTarget",
"name" : "SimpleLoggingTests",
"path" : "Tests/SimpleLoggingTests",
"sources" : [
"LogToFileTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"SimpleLogging"
],
"type" : "test"
},
{
"c99name" : "SimpleLogging",
"module_type" : "SwiftTarget",
"name" : "SimpleLogging",
"path" : "Sources/SimpleLogging",
"product_dependencies" : [
"LazyContainers",
"FunctionTools"
],
"product_memberships" : [
"SimpleLogging",
"SimpleLogging_dynamic",
"SimpleLoggingDynamic"
],
"sources" : [
"CodeLogMessage.swift",
"CombinedLogMessage.swift",
"CombinedLoggable.swift",
"Extensions/Foundation/FileHandle + TextOutputStream.swift",
"LogChannel.swift",
"LogManager.swift",
"LogMessage.swift",
"LogMessageProtocol.swift",
"LogSeverity.swift",
"Loggable.swift",
"LoggableError.swift",
"Simple Logging.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.