open my $log_writer, '>>', $log_file; *STDOUT = $log_writer; *STDERR = $log_writer;