Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ extension DocumentURI {
return "<DocumentURI length=\(description.count) hash=\(description.hashForLogging)>"
}
}
extension DocumentURI: SKLogging.CustomLogStringConvertible {}
@_spi(SourceKitLSP) extension DocumentURI: SKLogging.CustomLogStringConvertible {}
4 changes: 2 additions & 2 deletions Sources/SKLogging/CustomLogStringConvertible.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public import Foundation

/// An object that can printed for logging and also offers a redacted description
/// when logging in contexts in which private information shouldn't be captured.
public protocol CustomLogStringConvertible: CustomStringConvertible, Sendable {
@_spi(SourceKitLSP) public protocol CustomLogStringConvertible: CustomStringConvertible, Sendable {
/// A full description of the object.
var description: String { get }

Expand Down Expand Up @@ -86,7 +86,7 @@ private struct OptionalWrapper<Wrapped>: CustomLogStringConvertible where Wrappe
}
}

extension Optional where Wrapped: CustomLogStringConvertible {
@_spi(SourceKitLSP) extension Optional where Wrapped: CustomLogStringConvertible {
@_spi(SourceKitLSP) public var forLogging: CustomLogStringConvertibleWrapper {
return CustomLogStringConvertibleWrapper(OptionalWrapper(optional: self))
}
Expand Down