diff --git a/Tests/LoggingTests/GlobalLoggingTest.swift b/Tests/LoggingTests/GlobalLoggingTest.swift index 819fab6..c15e0d9 100644 --- a/Tests/LoggingTests/GlobalLoggingTest.swift +++ b/Tests/LoggingTests/GlobalLoggingTest.swift @@ -5,7 +5,7 @@ class GlobalLoggerTest: XCTestCase { func test1() throws { // bootstrap with our test logging impl let logging = TestLogging() - Logger.bootstrap(logging.make) + Logging.bootstrap(logging.make) // change test logging config to log traces and above logging.config.set(value: Logger.Level.trace) // run our program @@ -31,7 +31,7 @@ class GlobalLoggerTest: XCTestCase { func test2() throws { // bootstrap with our test logging impl let logging = TestLogging() - Logger.bootstrap(logging.make) + Logging.bootstrap(logging.make) // change test logging config to log errors and above logging.config.set(value: Logger.Level.error) // run our program @@ -57,7 +57,7 @@ class GlobalLoggerTest: XCTestCase { func test3() throws { // bootstrap with our test logging impl let logging = TestLogging() - Logger.bootstrap(logging.make) + Logging.bootstrap(logging.make) // change test logging config logging.config.set(value: .warning) logging.config.set(key: "GlobalLoggerTest::Struct2", value: .info) diff --git a/Tests/LoggingTests/LocalLoggingTest.swift b/Tests/LoggingTests/LocalLoggingTest.swift index aab6730..bb6bcab 100644 --- a/Tests/LoggingTests/LocalLoggingTest.swift +++ b/Tests/LoggingTests/LocalLoggingTest.swift @@ -5,7 +5,7 @@ class LocalLoggerTest: XCTestCase { func test1() throws { // bootstrap with our test logging impl let logging = TestLogging() - Logger.bootstrap(logging.make) + Logging.bootstrap(logging.make) // change test logging config to log traces and above logging.config.set(value: Logger.Level.trace) // run our program @@ -32,7 +32,7 @@ class LocalLoggerTest: XCTestCase { func test2() throws { // bootstrap with our test logging impl let logging = TestLogging() - Logger.bootstrap(logging.make) + Logging.bootstrap(logging.make) // change test logging config to log errors and above logging.config.set(value: Logger.Level.error) // run our program diff --git a/Tests/LoggingTests/LoggingTest.swift b/Tests/LoggingTests/LoggingTest.swift index 8a2ab2a..83840f5 100644 --- a/Tests/LoggingTests/LoggingTest.swift +++ b/Tests/LoggingTests/LoggingTest.swift @@ -5,7 +5,7 @@ class LoggingTest: XCTestCase { func testAutoclosure() throws { // bootstrap with our test logging impl let logging = TestLogging() - Logger.bootstrap(logging.make) + Logging.bootstrap(logging.make) var logger = Logger(label: "test") logger.logLevel = .info logger.trace({ @@ -36,7 +36,7 @@ class LoggingTest: XCTestCase { func testAutoclosureWithError() throws { // bootstrap with our test logging impl let logging = TestLogging() - Logger.bootstrap(logging.make) + Logging.bootstrap(logging.make) var logger = Logger(label: "test") logger.logLevel = .warning logger.trace({ @@ -67,7 +67,7 @@ class LoggingTest: XCTestCase { func testWithError() throws { let logging = TestLogging() - Logger.bootstrap(logging.make) + Logging.bootstrap(logging.make) let logger = Logger(label: "test") logger.error("oh no!", error: TestError.boom) @@ -78,7 +78,7 @@ class LoggingTest: XCTestCase { // bootstrap with our test logging impl let logging1 = TestLogging() let logging2 = TestLogging() - Logger.bootstrap({ MultiplexLogHandler([logging1.make(label: $0), logging2.make(label: $0)]) }) + Logging.bootstrap({ MultiplexLogHandler([logging1.make(label: $0), logging2.make(label: $0)]) }) var logger = Logger(label: "test") logger.logLevel = .warning @@ -97,7 +97,7 @@ class LoggingTest: XCTestCase { func testDictionaryMetadata() { let testLogging = TestLogging() - Logger.bootstrap(testLogging.make) + Logging.bootstrap(testLogging.make) var logger = Logger(label: "\(#function)") logger[metadataKey: "foo"] = ["bar": "buz"] logger[metadataKey: "empty-dict"] = [:] @@ -112,7 +112,7 @@ class LoggingTest: XCTestCase { func testListMetadata() { let testLogging = TestLogging() - Logger.bootstrap(testLogging.make) + Logging.bootstrap(testLogging.make) var logger = Logger(label: "\(#function)") logger[metadataKey: "foo"] = ["bar", "buz"] logger[metadataKey: "empty-list"] = [] @@ -132,7 +132,7 @@ class LoggingTest: XCTestCase { func testAutoClosuresAreNotForcedUnlessNeeded() { let testLogging = TestLogging() - Logger.bootstrap(testLogging.make) + Logging.bootstrap(testLogging.make) var logger = Logger(label: "\(#function)") logger.logLevel = .error @@ -140,12 +140,12 @@ class LoggingTest: XCTestCase { logger.trace(self.dontEvaluateThisString()) logger.info(self.dontEvaluateThisString()) logger.warning(self.dontEvaluateThisString()) - logger.log(level: .warning, message: self.dontEvaluateThisString()) + logger.log(level: .warning, self.dontEvaluateThisString()) } func testLocalMetadata() { let testLogging = TestLogging() - Logger.bootstrap(testLogging.make) + Logging.bootstrap(testLogging.make) var logger = Logger(label: "\(#function)") logger.info("hello world!", metadata: ["foo": "bar"]) logger[metadataKey: "bar"] = "baz" diff --git a/Tests/LoggingTests/MDCTest.swift b/Tests/LoggingTests/MDCTest.swift index 102e7f0..805022d 100644 --- a/Tests/LoggingTests/MDCTest.swift +++ b/Tests/LoggingTests/MDCTest.swift @@ -6,7 +6,7 @@ class MDCTest: XCTestCase { func test1() throws { // bootstrap with our test logger let logging = TestLogging() - Logger.bootstrap(logging.make) + Logging.bootstrap(logging.make) // run the program MDC.global["foo"] = "bar" let group = DispatchGroup()