Skip to content

DefaultLogSystem constructor makes it hard to log to stderr #30

Closed
@rix0rrr

Description

@rix0rrr

For my testing program, I would like to log to stderr. The signature of DefaultLogSystem makes that quite hard though.

I would like to just plug in a pointer/reference to std::cerr, but according to the constructor it must be wrapped inside a shared_ptr.

For obvious reasons, I can't put std::cerr into a smart pointer or my program will segfault.

I tried making a wrapper object using Boost.Iostreams but for some reason that has a static_assert saying that I'm not allowed to wrap any of the built-in streams.

It would be good if there was a constructor where I could just pass in a naked pointer (or you supply an object that I can construct and pass that wraps another std::ostream).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions