Skip to content

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Oct 9, 2023

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.

@ahoppen
Copy link
Member Author

ahoppen commented Oct 9, 2023

@swift-ci Please test

@ahoppen ahoppen force-pushed the ahoppen/migrate-to-oslog branch 2 times, most recently from 5587282 to ef8b839 Compare October 9, 2023 22:05
@ahoppen
Copy link
Member Author

ahoppen commented Oct 9, 2023

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Oct 9, 2023

@swift-ci Please test Windows

@ahoppen
Copy link
Member Author

ahoppen commented Oct 10, 2023

swiftlang/swift#69084

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Oct 10, 2023

swiftlang/swift#69084

@swift-ci Please test Windows

@ahoppen
Copy link
Member Author

ahoppen commented Oct 10, 2023

swiftlang/swift#69084

@swift-ci Please test Windows

@ahoppen ahoppen force-pushed the ahoppen/migrate-to-oslog branch from 14d92ec to a2ddde0 Compare October 10, 2023 15:31
@ahoppen
Copy link
Member Author

ahoppen commented Oct 10, 2023

swiftlang/swift#69084

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Oct 10, 2023

swiftlang/swift#69084

@swift-ci Please test Windows

@ahoppen ahoppen force-pushed the ahoppen/migrate-to-oslog branch from a2ddde0 to dd7c078 Compare October 10, 2023 18:48
@ahoppen
Copy link
Member Author

ahoppen commented Oct 10, 2023

swiftlang/swift#69084

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Oct 10, 2023

swiftlang/swift#69084

@swift-ci Please test Windows

@ahoppen ahoppen force-pushed the ahoppen/migrate-to-oslog branch from dd7c078 to 174c426 Compare October 11, 2023 15:17
@ahoppen
Copy link
Member Author

ahoppen commented Oct 11, 2023

swiftlang/swift#69084

@swift-ci Please test Windows

1 similar comment
@ahoppen
Copy link
Member Author

ahoppen commented Oct 11, 2023

swiftlang/swift#69084

@swift-ci Please test Windows

@ahoppen ahoppen force-pushed the ahoppen/migrate-to-oslog branch from 174c426 to ca388db Compare October 12, 2023 15:40
@ahoppen
Copy link
Member Author

ahoppen commented Oct 12, 2023

swiftlang/swift#69084

@swift-ci Please test Windows

1 similar comment
@ahoppen
Copy link
Member Author

ahoppen commented Oct 12, 2023

swiftlang/swift#69084

@swift-ci Please test Windows

@ahoppen ahoppen force-pushed the ahoppen/migrate-to-oslog branch from ca388db to 537c975 Compare October 13, 2023 15:35
@ahoppen
Copy link
Member Author

ahoppen commented Oct 13, 2023

swiftlang/swift#69084

@swift-ci Please test Windows

@ahoppen
Copy link
Member Author

ahoppen commented Oct 13, 2023

swiftlang/swift#69084

@swift-ci Please test macOS

@ahoppen
Copy link
Member Author

ahoppen commented Oct 13, 2023

swiftlang/swift#69084

@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.
@ahoppen ahoppen force-pushed the ahoppen/migrate-to-oslog branch from 537c975 to f960d7e Compare October 13, 2023 20:46
@ahoppen
Copy link
Member Author

ahoppen commented Oct 13, 2023

swiftlang/swift#69084

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Oct 13, 2023

swiftlang/swift#69084

@swift-ci Please test Windows

1 similar comment
@ahoppen
Copy link
Member Author

ahoppen commented Oct 13, 2023

swiftlang/swift#69084

@swift-ci Please test Windows

@ahoppen ahoppen merged commit 4bc4a22 into swiftlang:main Oct 14, 2023
@ahoppen ahoppen deleted the ahoppen/migrate-to-oslog branch October 14, 2023 14:16
compnerd added a commit to compnerd/swift-build that referenced this pull request Oct 15, 2023
SouceKit-LSP now depends on SwiftCrypto (see swiftlang/sourcekit-lsp#859).
This should repair the build on main.
compnerd added a commit to compnerd/swift-build that referenced this pull request Oct 15, 2023
SourceKit-LSP now has a dependency on Crypto.  Adjust the build rules
accordingly.
compnerd added a commit to compnerd/swift-build that referenced this pull request Oct 15, 2023
SourceKit-LSP now has a dependency on Crypto.  Adjust the build rules
accordingly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants