Files
ios-client/IosClientKit/Sources/CoreCommon/Logger.swift
2026-09-14 21:10:44 +08:00

15 lines
380 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/// 全局日志工具(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
}
}