File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,10 @@ import XCTest
88
99final class CLTLoggerTests : XCTestCase {
1010
11+ static let defaultBootstrapFactory : @Sendable ( String ) -> any LogHandler = { _ in CLTLogger ( multilineMode: . allMultiline) }
12+
1113 override class func setUp( ) {
12- LoggingSystem . bootstrap { _ in CLTLogger ( multilineMode : . allMultiline ) }
14+ LoggingSystem . bootstrap ( Self . defaultBootstrapFactory )
1315 }
1416
1517 /* From <https://apple.github.io/swift-log/docs/current/Logging/Protocols/LogHandler.html#treat-log-level-amp-metadata-as-values>. */
@@ -105,6 +107,8 @@ final class CLTLoggerTests : XCTestCase {
105107 logger. debug ( " debug: Example of text at this level. " )
106108 logger. trace ( " trace: Example of text at this level. " )
107109 }
110+ /* Reset factory. */
111+ LoggingSystem . bootstrapInternal ( Self . defaultBootstrapFactory)
108112 }
109113
110114}
You can’t perform that action at this time.
0 commit comments