added file logging, enabled by default (since the output is likely to be needed later).