re-enable log file use when daemons in the foreground

Partial revert of commit 3a6bd33641fe3dcb7d9b759342cf47d5a773d0b
Log out of memory to both the log file and stderr if daemon in foreground

Previously nothing would be printed to stderr of foreground program on OOM.

Eliminate the need for log_fp() function