NSLogger
NSLogger copied to clipboard
Specifying kLoggerOption_LogToConsole flag logs are coming only to console
Recently updated to 1.7.0 and have been searching for a way to log both to console and app.
Found kLoggerOption_LogToConsole flag and hoped it will work as described in the wiki: "Since version 1.5, NSLogger can now both log to system console and send the logs over the wire." But something is wrong and it seems to be logging only to console when it is specified. No traces of log in the NSLogger app appears (though it works fine without kLoggerOption_LogToConsole flag).
I am configuring the logger as follows
LoggerSetOptions(NULL, kLoggerOption_LogToConsole);
LoggerStart(LoggerGetDefaultLogger());
I see there may be a duplicate for this issue, but not exactly the same: https://github.com/fpillet/NSLogger/issues/209
The wiki is incorrect on this front - NSLogger currently only directs logs to either destination, although I see how this can be useful. Will add support for this in the future.