MCPcopy Create free account
hub / github.com/elastio/devx / log_output

Method log_output

devx-cmd/src/lib.rs:628–634  ·  view source on GitHub ↗
(&self, ostream: Ostream, output: &dyn fmt::Display)

Source from the content-addressed store, hash-verified

626 }
627
628 fn log_output(&self, ostream: Ostream, output: &dyn fmt::Display) {
629 if let Some(level) = self.cmd.0.log_cmd {
630 let pid = self.child.id();
631 let bin_name = self.cmd.bin_name();
632 log::log!(level, "[{} {} {}] {}", ostream, pid, bin_name, output,);
633 }
634 }
635
636 /// Returns an iterator over the lines of data output to `stdout` by the child process.
637 /// Beware that the iterator buffers the output, thus when the it is

Callers 2

read_no_waitMethod · 0.80
read_bytes_no_waitMethod · 0.80

Calls 1

bin_nameMethod · 0.80

Tested by

no test coverage detected