Fix syslog logic checks for `file://`, `tcp://` and `udp://`. Fixes #7754.
Avoid unnecessary `KeyError`'s while testing.
Test for the presence of a yaml parsing log message. Fixes #6714.

Additionally, moved the yaml syntax error checking to the proper place.
If logfile cannot be opened fall back to the NULL logger

This fixes #7706

@s0undt3ch, please take a look for a more elegant solution here, but
we should be safe turning off logging for the salt command in this case
At least try to show a warning message.
Log to user home directory if user is in ACL and is unable to write to logs directory. Fixes #7706.
Add ref to ret in test_7754
Ensure that the ports are integers
Assign the ret value
Add ret value to test return data
Fix typo from 6bc5ea34.
Merge pull request #7878 from s0undt3ch/0.17

[0.17 cherry-pick] log related stuff + 1 unit test fix