log to file if daemon only