Refactoring.

- Remove logging setup from process_argv(...).
- Simplify setup_file_logging(...).
- Make the usage of setup_file_logging(...) consistent with
the usage of setup_terminal_logging(...).