-
Notifications
You must be signed in to change notification settings - Fork 324
Change logging to use OSLog
#859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci Please test |
5587282
to
ef8b839
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
ef8b839
to
14d92ec
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
@swift-ci Please test Windows |
14d92ec
to
a2ddde0
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
a2ddde0
to
dd7c078
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
dd7c078
to
174c426
Compare
@swift-ci Please test Windows |
1 similar comment
@swift-ci Please test Windows |
174c426
to
ca388db
Compare
@swift-ci Please test Windows |
1 similar comment
@swift-ci Please test Windows |
ca388db
to
537c975
Compare
@swift-ci Please test Windows |
@swift-ci Please test macOS |
@swift-ci Please test Linux |
OSLog is the suggesting logging solution on Apple platforms and we should be using it there, taking advantage of the different log levels and privacy masking. Switch sourcekit-lsp to use OSLog on Apple platforms and implement a logger that is API-compatible with OSLog for all uses in sourcekit-lsp and which can be used on non-Darwin platforms. The goal of this commit is to introduce the new logging API. There are still improvements about what we log and we can display more privacy-insensitive information after masking. Those changes will be in follow-up commits.
537c975
to
f960d7e
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
1 similar comment
@swift-ci Please test Windows |
SouceKit-LSP now depends on SwiftCrypto (see swiftlang/sourcekit-lsp#859). This should repair the build on main.
SourceKit-LSP now has a dependency on Crypto. Adjust the build rules accordingly.
SourceKit-LSP now has a dependency on Crypto. Adjust the build rules accordingly.
OSLog is the suggesting logging solution on Apple platforms and we should be using it there, taking advantage of the different log levels and privacy masking.
Switch sourcekit-lsp to use OSLog on Apple platforms and implement a logger that is API-compatible with OSLog for all uses in sourcekit-lsp and which can be used on non-Darwin platforms.
The goal of this commit is to introduce the new logging API. There are still improvements about what we log and we can display more privacy-insensitive information after masking. Those changes will be in follow-up commits.