Skip to content

Conversation

Logikable
Copy link
Contributor

We'd like to subscribe to only the most critical logs. Currently, there is no way to specify a log level threshold. This PR provides a stopgap solution.

In addition to the log_streams vector that new log sinks can push to, this PR adds a log_warning_streams vector that behaves similarly, but ostreams in this new vector only receive warning and error logs.

@mikesinouye
Copy link
Contributor

Hey @widlarizer, please take a look when you get a chance, thank you!

@widlarizer
Copy link
Collaborator

Seems like ERROR is predefined somewhere in Windows specific headers. You can rename the enum variand or #ifdef #undef it

@Logikable
Copy link
Contributor Author

Renamed, thanks :)

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

Successfully merging this pull request may close these issues.

3 participants