output to stdout/stderr if logfile prefix is NULL
output filename:line in LOG_USER and LOG_INFO