Sync log.py from oslo

Add use_syslog_rfc_format config option. Default value is False.
If enabled, will add APP-NAME before the MSG part of the syslog message.

Fixes bug: #904307

Change-Id: Idd664bc98532e3a557dde5cbee213ca597d4e2e5
Merge "Sync log.py from oslo"