KindlyLogger
public enum KindlyLogger
Centralized logging that handles iOS version compatibility internally iOS 14+: Uses internal print overrides with full debugging info (file, line, function) iOS 13: Falls back to native Swift.print
-
Log a message with automatic iOS 14 availability handling
Declaration
Swift
public static func log(_ tag: String, _ message: String, level: OSLogType = .default, filename: String = #file, function: String = #function, line: Int = #line)Parameters
tagThe tag/class name for the log
messageThe message to log
levelThe log level (default: .default)
filenameSource file name (auto-captured)
functionFunction name (auto-captured)
lineLine number (auto-captured)
View on GitHub