Add initial log file support

This adds support for logging to a file in the
/tmp directory

Signed-off-by: Jeff Horn <jeff@everlook.net>