Logging utility for Swift and Objective C