fix file logging and manually specify format

File logging requires an explicit auto_flush for some reason. Manual formatting is also specified for consistency.
add notes for handling

It isn't yet clear how file sinks are to be removed, to investigate later when I need it or someone reports a need.
add file output to example