Allow logging to any file instead of just stdout.

Signed-off-by: David Siroky <siroky@dasir.cz>