mirror of
https://github.com/apple/swift-log
synced 2026-11-27 04:14:20 +00:00
hide the existential
This commit is contained in:
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)")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user