Log to file instead of terminal