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

SelectiveStdWritePolicy::writeObj: write logs #370

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

goxberry
Copy link

@goxberry goxberry commented Mar 9, 2025

As far as I can tell, cadet::log::SelectiveStdWritePolicy<switchLvl> will not write out any objects to either std::cerr or std::cout -- it will only write end-of-line sequences to both streams. This behavior seems inconsistent with both its intent and with the other two logging policies implemented (cadet::log::StdOutWritePolicy and cadet::log::StdErrWritePolicy), so this commit changes the implementation of cadet::log::SelectiveStdWritePolicy::writeObj to be consistent with those two logging policies.

As far as I can tell, `cadet::log::SelectiveStdWritePolicy<switchLvl>`
will not write out any objects to either `std::cerr` or `std::cout` --
it will only write end-of-line sequences to both streams. This
behavior seems inconsistent with both its intent and with the other
two logging policies implemented (`cadet::log::StdOutWritePolicy` and
`cadet::log::StdErrWritePolicy`), so this commit changes the
implementation of `cadet::log::SelectiveStdWritePolicy::writeObj` to
be consistent with those two logging policies.

Signed-off-by: Geoffrey M Oxberry <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 participant