Linuxパソコン・サーバーのBash言語のコマンドラインにおいて、標準出力と標準エラー出力をそれぞれのファイルにリダイレクトしつつコンソール上の出力もし、標準出力と標準エラー出力の区別もそのままキープしておく、ということを実装するにはどうしたらいいのか、ということになります。
something > >(tee -a stdout.log) 2> >(tee -a stderr.log >&2)
linux – How do I write stderr to a file while using “tee” with a pipe? – Stack Overflow