chore: core 多模块骨架
This commit is contained in:
14
IosClientKit/Sources/CoreCommon/Logger.swift
Normal file
14
IosClientKit/Sources/CoreCommon/Logger.swift
Normal file
@@ -0,0 +1,14 @@
|
||||
/// 全局日志工具(Android 端 Timber 的轻量替代)。
|
||||
public enum Logger {
|
||||
public static func info(_ message: @autoclosure () -> String) {
|
||||
#if DEBUG
|
||||
print("[INFO] \(message())")
|
||||
#endif
|
||||
}
|
||||
|
||||
public static func error(_ message: @autoclosure () -> String) {
|
||||
#if DEBUG
|
||||
print("[ERROR] \(message())")
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user