You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case where I'd like to write to an existing std::fs::File object.
In particular, I have used the Win32 function AllocConsole() to create a console window for my code, which runs inside of a DLL called from a GUI application. I would like to log to this console. E.g., I have the following function
I want to log to the File object returned by this function.
I see that there is a duplicate_to_stdout() method in flexi_logger, but nothing to duplicate to an arbitrary file. It looks like there's a writers module but that seems to require implementing an entire trait. Is there a straightforward way to tell flexi_logger to log to a given Write sink?
The text was updated successfully, but these errors were encountered:
If I may formulate a wish-list: it should be a reasonably documented little class of its own, like above, with some decent constructor(s), that also allows choosing the format function, in module writers. We then can link to it from Logger::log_to_writer.
I have a use case where I'd like to write to an existing
std::fs::File
object.In particular, I have used the Win32 function
AllocConsole()
to create a console window for my code, which runs inside of a DLL called from a GUI application. I would like to log to this console. E.g., I have the following functionI want to log to the
File
object returned by this function.I see that there is a
duplicate_to_stdout()
method in flexi_logger, but nothing to duplicate to an arbitrary file. It looks like there's awriters
module but that seems to require implementing an entire trait. Is there a straightforward way to tell flexi_logger to log to a givenWrite
sink?The text was updated successfully, but these errors were encountered: