Re-use NetUtils.getLocalHostname() instead of local version.

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1597390 13f79535-47bb-0310-9956-ffa450edef68
Add type converter for Facility enum.

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1597393 13f79535-47bb-0310-9956-ffa450edef68
Refactor enum type conversion into generic enum converter.

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1597394 13f79535-47bb-0310-9956-ffa450edef68