Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying kLoggerOption_LogToConsole flag logs are coming only to console #213

Open
GregoryMaks opened this issue Oct 12, 2016 · 1 comment
Labels

Comments

@GregoryMaks
Copy link

GregoryMaks commented Oct 12, 2016

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: #209

@fpillet
Copy link
Owner

fpillet commented Mar 26, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants