Make log file optional.