in reply to printing and logging to a file

Check out Log::Dispatch::Config - after all, you never know when you're going to need something more than just STDOUT and a log file. Some day you might want Syslog too.