Update the default logs directory and allow collection from elsewhere. (#4352)

* Replace deprecated URL methods.

* Start putting log files in Library/Logs (moving existing files with a migration.)

* Make Tracing.deleteLogFiles aware of the legacy logs location.

* Allow the logs to be collected from a different directory.
This commit is contained in:
Doug
2025-07-24 09:49:29 +01:00
committed by GitHub
parent ee9f055822
commit d6ca170ed9
7 changed files with 73 additions and 23 deletions

View File

@@ -17,7 +17,7 @@ class LoggingTests: XCTestCase {
}
override func setUpWithError() throws {
Tracing.deleteLogFiles()
Tracing.deleteLogFiles(in: Tracing.logsDirectory)
}
func testLogging() async throws {