Q:

log script output to file and terminal at the same time

I have a simple tcpnotification receiver script that logs notifications. At first I
was logging to a file, but I realized that I wanted to see the output in the terminal as well.
I tried using tee, but it only works for stdout.
I tried using tee -a, but it only works for stdout.
I tried using tee -a > /dev/null