bash tee stdout et stderr
command > >(tee stdout.log) 2> >(tee stderr.log >&2)
jdam
command > >(tee stdout.log) 2> >(tee stderr.log >&2)