Manage logging file permission issues

Suggested reviewer: @iliastsi