Try to create custom log file before falling back to default.
Merge pull request #5465 from owncloud/create-custom-logfile-stable5

Stable5: Try to create custom log file before falling back to default.