swift-log: Xcode 12 fails to compile with swift-log as a dependency
Expected behavior
When importing logging and using the a custom LogHandler, the app builds successfully
Actual behavior
Steps to reproduce
- Create a protocol that uses
Logger
- Example
public protocol LogListener {
var isEnabled: Bool { get set }
var logLevel: Logger.Level { get set }
func logMessage(_ logDetails: ATHLogHandler.LogDetails)
}
- App Will fail to compile
- ‘Logger’ is ambiguous for type lookup in this context
SwiftLog version/commit hash
Version: 1.2.0
Swift & OS version (output of swift --version && uname -a
)
Swift 5.3 macOS 11
Other Notes
I know this is on beta software and you’re not required to support that anytime soon, but just wanted to put it out there.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (8 by maintainers)
Trying to create a project that reproduces this though.