How to use NSLogger LogMessageF function
<p>I'm trying to integrate NSLogger into my app. </p>

<p>From the <a href="https://github.com/fpillet/NSLogger/wiki/NSLogger-API" rel="nofollow noreferrer">Documentation</a>:</p>

<pre><code>void LogMessage(NSString *tag, int level, NSString *format, ...);
void LogMessageF(const char *file, int line, const char *function, NSString *tag, int level, NSString *format, ...);
</code></pre>

<p>Log a string to the default logger. Specifies a tag (can be nil) and a level, for advanced filtering (i.e. log important messages to level 0, more debug info to level 1, etc).The ..F variant can report the file, line and/or function name the log call was originally made from. Typically, you’ll use the standard <strong>FILE</strong>, <strong>LINE</strong> and <strong>PRETTY_FUNCTION</strong> compiler defines. </p>

<p>I tried to use the function as:</p>

<pre><code>-(void)viewDidLoad{
    [super viewDidLoad];
    LogMessage(@"map view just loaded", 0, @"map view loaded");
    LogMessageF(nil,50,nil,@"tag mapvc",1,@"testing f ormat");
   }
</code></pre>

<p>They both appear to be same. I'm expecting that LogMessageF should also show the line number along with the function name where it was called as mentioned in the documentation.</p>

<p>Instead of passing nil, I also tried passing the class name and function name, but in the logger, it didn't display those details.</p>

<p>Here is the screenshot of the NSLOggeR:</p>

<p><a href="https://i.stack.imgur.com/tf7co.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tf7co.png" alt="enter image description here"></a></p>