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

Provide ostream based API #33

Open
ktf opened this issue Mar 4, 2021 · 1 comment
Open

Provide ostream based API #33

ktf opened this issue Mar 4, 2021 · 1 comment

Comments

@ktf
Copy link
Contributor

ktf commented Mar 4, 2021

I would like to use FairLogger with some external component, which has the possibility to pipe log messages on a provided std::ostream. Is there any way we could have a wrapper around Logger which is std::ostream derived, while still using FairLogger as backend?

@rbx
Copy link
Member

rbx commented Mar 4, 2021

I have no found an easy way of doing this so far. Certainly I would like to avoid inheriting from ostream directly, as it can be quite complex.

But a wrapper as you suggest might work. Do you have a possible solution for this in mind?

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

No branches or pull requests

2 participants