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
The the "format function" passed to LogBuilder::format must implement Fn(&LogBuilder) -> String. That is, it must allocate a new string on the heap for every message logged. The string is discarded immediately after env_logger::Logger writes to stderr.
Would you consider, instead, making the signature Fn(&LogBuilder, &mut std::io::Write) -> io::Result? That way, customized env loggers could write directly to stderr without creating a String.
The text was updated successfully, but these errors were encountered:
The the "format function" passed to LogBuilder::format must implement
Fn(&LogBuilder) -> String
. That is, it must allocate a new string on the heap for every message logged. The string is discarded immediately after env_logger::Logger writes to stderr.Would you consider, instead, making the signature
Fn(&LogBuilder, &mut std::io::Write) -> io::Result
? That way, customized env loggers could write directly to stderr without creating a String.The text was updated successfully, but these errors were encountered: