Yes, I also use this for automatically capturing command error messages with timestamps into logs:
https://github.com/rust-shell-script/bash_cmd_lib/blob/0b0a6...
However this can be fragile in bash script since any sub shell command can fail. I am still wandering how to support it in this rust_cmd_lib library.