hide the existential

This commit is contained in:
Johannes Weiss committed 2018-12-03 17:43:55 +00:00
1 parent c5c893e7ff
commit edd354fa76
2 files changed
+48 -32

No files matched your search

@@ -15,7 +15,7 @@ private extension NSLock {
}
}
public final class ExampleLoggerImplementation: Logger {
public final class ExampleLoggerImplementation: LogEmitter {
private let formatter: DateFormatter
private let identifier: String
@@ -67,7 +67,7 @@ public final class ExampleLoggerImplementation: Logger {
}
}
public func _log(level: LogLevel, message: String, file: String, function: String, line: UInt) {
public func log(level: LogLevel, message: String, file: String, function: String, line: UInt) {
print("\(self.formatter.string(from: Date())) \(self.formatLevel(level)): \(message)\(self.prettyContext)")
}