Append .log to file writer filenames

Use a .log suffix for filenames generated by the file writer.

Improve error handling in the CLI.
Merge pull request #4906 from ironcladlou/logshifter/filenames

Merged by openshift-bot