I've been trying redirect output to logfiles but should NOT be displayed on terminal, but following command does output both on terminal and in logs. Any ideas are appreciated.
(some_cmd | tee -a log1 log2) 2>&1
That will pass stderr to stdout after tee, therefore it drops to your stdout in terminal.
if you need to store stderr
in case you don't need stderr output.