Redmine#1578: when creating logs, set mode to 600
Merge pull request #828 from tzz/tzz/redmine-1578-protect-logs

Redmine#1578: when creating logs, set mode to 600