suppose that you have a command that you want to capture the output and view the output as well to a file, here is the command that you can run
./start_server.sh -c parameter 2>&1 | tee -a output_log.log
You can check out more tips on how to achieve this from the stackoverflow here. How do I write stderr to a file while using "tee" with a pipe?