Redirect everything to log file.
Copy this code and paste it in your HTML
$logfile = "/tmp/mylog.txt";
open STDOUT, ">>", $logfile or die "cannot append to '$logfile': $!\n"; open STDERR, ">&STDOUT" or die "cannot dup STDERR to STDOUT: $!\n"; open LOG
, ">&STDOUT" or die "cannot dup LOG to STDOUT: $!\n";
Report this snippet
Comments
Subscribe to comments