Slide 23
Slide 23 text
ͻͨ͢Βಓͳ࡞ۀ
• CurryԽͨ͠ϝιουͷमਖ਼
public static func log(level level: Level)(@autoclosure name: () -> String)
(@autoclosure message: () -> String) -> String {
if level.rawValue <= Logger.currentLevel.rawValue {
let full = "\(level.description): \(name()) - \(message())"
print(full)
return full
}
return ""
}