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.
2 parents c366163 + 9fbfa46 commit a280ce3Copy full SHA for a280ce3
Sources/LSPLogging/CustomLogStringConvertible.swift
@@ -41,6 +41,11 @@ public class CustomLogStringConvertibleWrapper: NSObject {
41
return underlyingObject.description
42
}
43
44
+ #if canImport(os)
45
+ // When using OSLog mark redactedDescription as @objc so that OSLog can find it via the Objective-C runtime.
46
+ // We can't unconditionally mark it as @objc because eg. Linux doesn't have the Objective-C runtime.
47
+ @objc
48
+ #endif
49
public var redactedDescription: String {
50
underlyingObject.redactedDescription
51
0 commit comments