rotate logs, limit total logging to 50MB
wrap stdout stream write in try/catch
Merge pull request #96 from adobe-photoshop/jrb/logging-take-two

rotate logs, limit total logging to 50MB