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
Have you any plans to enable asynchronous logging via mpsc channels and a std thread? We're exploring that in Libra and I'd love to push that upstream if possible.
The text was updated successfully, but these errors were encountered:
Since env_logger is exclusively targeted at outputting to an attached stream that needs to be locked anyways I haven't really thought about asynchronous logging. I think the best approach might be to add some methods to env_logger::Logger that let you format a log::Record into something like this:
// Send + SyncpubstructFormattedRecord{value:Vec<u8>,output:Stream,}implFormattedRecord{pubfnoutput(&self) -> io::Result<()>{// write to the appropriate stream}}
so that you could ask env_logger to format up a record for you into something you could add to a channel and then write to the output stream later.
Have you any plans to enable asynchronous logging via mpsc channels and a std thread? We're exploring that in Libra and I'd love to push that upstream if possible.
The text was updated successfully, but these errors were encountered: