title: NSLog macro that can take only one argument
body: <pre><code>#define LogMsg(msg) ((DebugMode)?NSLog(@"&lt;%@:%@:%d:%@&gt;", NSStringFromClass([self class]), NSStringFromSelector(_cmd), __LINE__,msg):NO)
  </code></pre>
  
  <p>With this macro I can print out:</p>
  
  <pre><code>LogMsg(@"Test");
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>NSArray *testArray = @[@"one",@"two"];
  LogMsg(testArray);
  </code></pre>
  
  <p>How can I do the same with a macro replacement that will also take two arguments like NSLog and still be able to print the array in the form I'm doing with the above?
  example: </p>
  
  <p><code>NSLog (@"test: %@",test);</code></p>
  
  <ul>
  <li>I'd prefer not using a 3rd party Class for that and solve the above with a macro.</li>
  </ul>