title: Swift replacement for Objective-C macro
body: <p>I busy rewriting an app in Swift and would like to convert the following macro to Swift code.</p>
  
  <pre><code>#define FLOG(format, ...)               NSLog(@"%@.%@ %@", [self class], NSStringFromSelector(_cmd), [NSString stringWithFormat:format, ##__VA_ARGS__])
  </code></pre>
  
  <p>How can I define this as a Swift function such that I can use if anywhere for debug logging purposes, or is there an alternate way to achieve the same thing?</p>