Add logging using Perl mktemp facility