Log to file where possible.