Skip to content

Commit 533ab87

Browse files
authored
Merge pull request #6 from jnewc/feature/default-logger-type
Feature/default logger type
2 parents 2bf5e8c + 61e5a29 commit 533ab87

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

Cosmic.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "Cosmic"
4-
s.version = "4.3.0"
4+
s.version = "4.4.0"
55
s.summary = "A log reporting framework written in Swift"
66

77
s.description = <<-DESC

Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- BlueSocket (1.0.3)
2+
- BlueSocket (1.0.8)
33

44
DEPENDENCIES:
55
- BlueSocket (~> 1.0)
@@ -9,7 +9,7 @@ SPEC REPOS:
99
- BlueSocket
1010

1111
SPEC CHECKSUMS:
12-
BlueSocket: e9e6dc1fe10684f23f80c6673dcc2d5539bb7679
12+
BlueSocket: 763db95b6002c0e7dec8eb0c27bc628ca95296d1
1313

1414
PODFILE CHECKSUM: 5e4c3571b1a2b94cd02201a7225983e32eda0675
1515

Sources/Cosmic/Base/LogReporter.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,14 @@ public extension LogReporter {
2323
public func createLogger<T: Logger>(with type: T.Type) -> T {
2424

2525
if !LoggerCache.keys.contains(className) {
26-
print("Logging with className: \(className)")
2726
LoggerCache[className] = T.init()
2827
}
2928

3029
return LoggerCache[className] as! T
3130

3231
}
3332

34-
public var logger: Logger {
33+
public var logger: DefaultLoggerType {
3534
return self.createLogger(with: DefaultLoggerType.self)
3635
}
3736

Tests/CosmicTests/LogFilterTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ class LogFilterTests: XCTestCase {
7777
func testClassLogFilterIncluded() {
7878

7979
let memoryLogger = MemoryLogger()
80-
let printLogger = PrintLogger()
8180

8281
let filter = ClassBasedLogFilter()
8382

Tests/CosmicTests/PrintLoggerTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class AssertionOutputStream: LogOutputStream {
2626
}
2727

2828
override func write(_ string: String) {
29-
//print("ASSERT: \(string.replacingOccurrences(of: "\n", with: "\\n"))")
3029
output += string
3130
}
3231

0 commit comments

Comments
 (0)