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

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