bash tee stdout and stderr

Shell
command > >(tee stdout.log) 2> >(tee stderr.log >&2)
Source

Also in Shell: